From 5da33fe71dad0768325c560d746891432d83e838 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 7 Aug 2019 20:32:52 -0700 Subject: [PATCH] Remove commented out debris related to Verus breaking their immutability, sigh --- src/coins.cpp | 12 ------------ src/coins.h | 31 ------------------------------- 2 files changed, 43 deletions(-) diff --git a/src/coins.cpp b/src/coins.cpp index 92206b653..eac89c030 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -572,18 +572,6 @@ extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; const CScript &CCoinsViewCache::GetSpendFor(const CCoins *coins, const CTxIn& input) { 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; } diff --git a/src/coins.h b/src/coins.h index e0ea7d822..d7e357e9e 100644 --- a/src/coins.h +++ b/src/coins.h @@ -463,37 +463,6 @@ public: friend class CCoinsViewCache; }; -class CTransactionExceptionData -{ - public: - CScript scriptPubKey; - uint64_t voutMask; - CTransactionExceptionData() : scriptPubKey(), voutMask() {} -}; - -/*class CLaunchMap -{ - public: - std::unordered_map 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 address = std::vector(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 */ class CCoinsViewCache : public CCoinsViewBacked {