diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-06-15 13:38:54 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-06-15 13:40:00 -0400 |
commit | 466e16e0e8523909f9968c5823691b1d4a3d8175 (patch) | |
tree | 13b29dab45a96166b084144cacf86396db8638fc /src/miner.cpp | |
parent | be27048a1842b76de5b230383c1466b72dfd8cc5 (diff) |
cleanup: avoid hidden copies in range-for loops
Diffstat (limited to 'src/miner.cpp')
-rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index d4527a1d67..738ccad1b9 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -209,7 +209,7 @@ bool BlockAssembler::TestPackage(uint64_t packageSize, int64_t packageSigOpsCost // segwit activation) bool BlockAssembler::TestPackageTransactions(const CTxMemPool::setEntries& package) { - for (const CTxMemPool::txiter it : package) { + for (CTxMemPool::txiter it : package) { if (!IsFinalTx(it->GetTx(), nHeight, nLockTimeCutoff)) return false; if (!fIncludeWitness && it->GetTx().HasWitness()) @@ -241,7 +241,7 @@ int BlockAssembler::UpdatePackagesForAdded(const CTxMemPool::setEntries& already indexed_modified_transaction_set &mapModifiedTx) { int nDescendantsUpdated = 0; - for (const CTxMemPool::txiter it : alreadyAdded) { + for (CTxMemPool::txiter it : alreadyAdded) { CTxMemPool::setEntries descendants; mempool.CalculateDescendants(it, descendants); // Insert all descendants (not yet in block) into the modified set |