diff options
| author | practicalswift <[email protected]> | 2018-07-26 16:33:45 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-02 14:30:53 +0200 |
| commit | cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3 (patch) | |
| tree | 9c7e66306acaff0756d5a871b8556220f5a90bfa /src/txmempool.cpp | |
| parent | gui: Pull initial 017x translations from transifex (diff) | |
| download | discoin-cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3.tar.xz discoin-cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3.zip | |
Remove redundant assignments (dead stores)
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index d68c38ad4..88ee3a3d4 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -640,8 +640,6 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const innerUsage += memusage::DynamicUsage(links.parents) + memusage::DynamicUsage(links.children); bool fDependsWait = false; setEntries setParentCheck; - int64_t parentSizes = 0; - int64_t parentSigOpCost = 0; for (const CTxIn &txin : tx.vin) { // Check that every mempool transaction's inputs refer to available coins, or other mempool tx's. indexed_transaction_set::const_iterator it2 = mapTx.find(txin.prevout.hash); @@ -649,10 +647,7 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const const CTransaction& tx2 = it2->GetTx(); assert(tx2.vout.size() > txin.prevout.n && !tx2.vout[txin.prevout.n].IsNull()); fDependsWait = true; - if (setParentCheck.insert(it2).second) { - parentSizes += it2->GetTxSize(); - parentSigOpCost += it2->GetSigOpCost(); - } + setParentCheck.insert(it2); } else { assert(pcoins->HaveCoin(txin.prevout)); } |