aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-02-02 10:08:44 +0100
committerJon Atack <jon@atack.com>2020-02-02 10:27:47 +0100
commit9a299a59cc8a9ab516e047356c5bc0e93774b557 (patch)
treea98bc41447d67879742918c49fb64f5f37979016 /src
parentf05c1ac444e0c893516535bfdf07c5c8cd9bce16 (diff)
net: reference instead of copy in BlockConnected range loop
to fix -Wrange-loop-analysis warning introduced in a029e18
Diffstat (limited to 'src')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 81deaea0df..cf4aee0647 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -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());
}
}