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/validation.cpp | |
parent | be27048a1842b76de5b230383c1466b72dfd8cc5 (diff) |
cleanup: avoid hidden copies in range-for loops
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 5d2b65c95c..598b3dadd7 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -651,7 +651,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool view.SetBackend(viewMemPool); // do all inputs exist? - for (const CTxIn txin : tx.vin) { + for (const CTxIn& txin : tx.vin) { if (!pcoinsTip->HaveCoinInCache(txin.prevout)) { coins_to_uncache.push_back(txin.prevout); } @@ -957,7 +957,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool } // Remove conflicting transactions from the mempool - for (const CTxMemPool::txiter it : allConflicting) + for (CTxMemPool::txiter it : allConflicting) { LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s BTC additional fees, %d delta bytes\n", it->GetTx().GetHash().ToString(), |