Skip to content

Commit 9a299a5

Browse files
committed
net: reference instead of copy in BlockConnected range loop
to fix -Wrange-loop-analysis warning introduced in a029e18
1 parent f05c1ac commit 9a299a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr<const CBlock>& pb
11821182
}
11831183
{
11841184
LOCK(g_cs_recent_confirmed_transactions);
1185-
for (const auto ptx : pblock->vtx) {
1185+
for (const auto& ptx : pblock->vtx) {
11861186
g_recent_confirmed_transactions->insert(ptx->GetHash());
11871187
}
11881188
}

0 commit comments

Comments
 (0)