diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 1d6711c870..eb500f9b38 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1365,7 +1365,7 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr& 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()); } }