aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2021-12-08 19:44:46 +0700
committerSjors Provoost <sjors@sprovoost.nl>2021-12-24 16:28:54 +0100
commit809d66bb65aa78048e27c2a878d6f7becaecfe11 (patch)
tree346d908e0ca7a5ac4ca032fac6e1c9c2d616f3e2 /src/net_processing.cpp
parent0e3d7c5ee16d5a4c061ab9a57285bceb7899b512 (diff)
downloadbitcoin-809d66bb65aa78048e27c2a878d6f7becaecfe11.tar.xz
rpc: clarify getblockfrompeer behavior when called multiple times
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 5f47a9c16b..1319267944 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1439,7 +1439,9 @@ bool PeerManagerImpl::FetchBlock(NodeId id, const CBlockIndex& block_index)
// Ignore pre-segwit peers
if (!state->fHaveWitness) return false;
- // Mark block as in-flight unless it already is
+ // Mark block as in-flight unless it already is (for this peer).
+ // If a block was already in-flight for a different peer, its BLOCKTXN
+ // response will be dropped.
if (!BlockRequested(id, block_index)) return false;
// Construct message to request the block