mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
refactor: Make node_id a const& in RemoveBlockRequest
This works around a valgrind false-positive.
This commit is contained in:
parent
9a8e5adb16
commit
fa1622db20
1 changed files with 1 additions and 1 deletions
|
@ -1155,7 +1155,7 @@ void PeerManagerImpl::RemoveBlockRequest(const uint256& hash, std::optional<Node
|
|||
Assume(mapBlocksInFlight.count(hash) <= MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK);
|
||||
|
||||
while (range.first != range.second) {
|
||||
auto [node_id, list_it] = range.first->second;
|
||||
const auto& [node_id, list_it]{range.first->second};
|
||||
|
||||
if (from_peer && *from_peer != node_id) {
|
||||
range.first++;
|
||||
|
|
Loading…
Add table
Reference in a new issue