mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-18 06:00:43 +02: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
@ -1182,7 +1182,7 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr<const CBlock>& pb
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
LOCK(g_cs_recent_confirmed_transactions);
|
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());
|
g_recent_confirmed_transactions->insert(ptx->GetHash());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user