Remove commented out debris related to Verus breaking their immutability, sigh
This commit is contained in:
@@ -572,18 +572,6 @@ extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
|
|||||||
const CScript &CCoinsViewCache::GetSpendFor(const CCoins *coins, const CTxIn& input)
|
const CScript &CCoinsViewCache::GetSpendFor(const CCoins *coins, const CTxIn& input)
|
||||||
{
|
{
|
||||||
assert(coins);
|
assert(coins);
|
||||||
/*if (coins->nHeight < 6400 && !strcmp(ASSETCHAINS_SYMBOL, "VRSC"))
|
|
||||||
{
|
|
||||||
std::string hc = input.prevout.hash.ToString();
|
|
||||||
if (LaunchMap().lmap.count(hc))
|
|
||||||
{
|
|
||||||
CTransactionExceptionData &txData = LaunchMap().lmap[hc];
|
|
||||||
if ((txData.voutMask & (((uint64_t)1) << (uint64_t)input.prevout.n)) != 0)
|
|
||||||
{
|
|
||||||
return txData.scriptPubKey;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
return coins->vout[input.prevout.n].scriptPubKey;
|
return coins->vout[input.prevout.n].scriptPubKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
31
src/coins.h
31
src/coins.h
@@ -463,37 +463,6 @@ public:
|
|||||||
friend class CCoinsViewCache;
|
friend class CCoinsViewCache;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CTransactionExceptionData
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CScript scriptPubKey;
|
|
||||||
uint64_t voutMask;
|
|
||||||
CTransactionExceptionData() : scriptPubKey(), voutMask() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*class CLaunchMap
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
std::unordered_map<std::string, CTransactionExceptionData> lmap;
|
|
||||||
CLaunchMap() : lmap()
|
|
||||||
{
|
|
||||||
//printf("txid: %s -> addr: %s\n", whitelist_ids[i], whitelist_addrs[i]);
|
|
||||||
CBitcoinAddress bcaddr(whitelist_address);
|
|
||||||
CKeyID key;
|
|
||||||
if (bcaddr.GetKeyID_NoCheck(key))
|
|
||||||
{
|
|
||||||
std::vector<unsigned char> address = std::vector<unsigned char>(key.begin(), key.end());
|
|
||||||
for (int i = 0; i < WHITELIST_COUNT; i++)
|
|
||||||
{
|
|
||||||
std::string hash = uint256S(whitelist_ids[i]).ToString();
|
|
||||||
lmap[hash].scriptPubKey << OP_DUP << OP_HASH160 << address << OP_EQUALVERIFY << OP_CHECKSIG;
|
|
||||||
lmap[hash].voutMask = whitelist_masks[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
static CLaunchMap launchMap = CLaunchMap();*/
|
|
||||||
|
|
||||||
/** CCoinsView that adds a memory cache for transactions to another CCoinsView */
|
/** CCoinsView that adds a memory cache for transactions to another CCoinsView */
|
||||||
class CCoinsViewCache : public CCoinsViewBacked
|
class CCoinsViewCache : public CCoinsViewBacked
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user