From fa1622db208025e1744e78c4f5b135db11b293d4 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 13 Nov 2024 09:36:20 +0100 Subject: [PATCH] refactor: Make node_id a const& in RemoveBlockRequest This works around a valgrind false-positive. --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 841647cea93..b1f7c7b8100 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1155,7 +1155,7 @@ void PeerManagerImpl::RemoveBlockRequest(const uint256& hash, std::optionalsecond; + const auto& [node_id, list_it]{range.first->second}; if (from_peer && *from_peer != node_id) { range.first++;