mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
net: reference instead of copy in BlockConnected range loop
to fix -Wrange-loop-analysis warning introduced in a029e18
This commit is contained in:
parent
f05c1ac444
commit
9a299a59cc
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr<const CBlock>& pb
|
|||
}
|
||||
{
|
||||
LOCK(g_cs_recent_confirmed_transactions);
|
||||
for (const auto ptx : pblock->vtx) {
|
||||
for (const auto& ptx : pblock->vtx) {
|
||||
g_recent_confirmed_transactions->insert(ptx->GetHash());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue