diff options
author | Larry Ruane <larryruane@gmail.com> | 2022-09-24 00:00:17 -0600 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-11 09:19:58 +0800 |
commit | 7e0bcfbfef61cb688bc92a96003c1219cad67935 (patch) | |
tree | 8ab45f2efd66438f719ab730f726d94e9f637fd4 /src | |
parent | c97d924880eaad136c5f7776f05bf887657ccca7 (diff) |
p2p: ProcessHeadersMessage(): fix received_new_header
Follow-up to #25717. The commit "Utilize anti-DoS headers download
strategy" changed how this bool variable is computed, so that its value
is now the opposite of what it should be.
GitHub-Pull: #26172
Rebased-From: bdcafb913398f0cdaff9c880618f9ebfc85c7693
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 74700580ad..1c44ec9903 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2843,7 +2843,7 @@ void PeerManagerImpl::ProcessHeadersMessage(CNode& pfrom, Peer& peer, // If we don't have the last header, then this peer will have given us // something new (if these headers are valid). - bool received_new_header{last_received_header != nullptr}; + bool received_new_header{last_received_header == nullptr}; // Now process all the headers. BlockValidationState state; |