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++;