diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2021-12-08 19:44:46 +0700 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2021-12-24 16:28:54 +0100 |
commit | 809d66bb65aa78048e27c2a878d6f7becaecfe11 (patch) | |
tree | 346d908e0ca7a5ac4ca032fac6e1c9c2d616f3e2 /src/net_processing.cpp | |
parent | 0e3d7c5ee16d5a4c061ab9a57285bceb7899b512 (diff) |
rpc: clarify getblockfrompeer behavior when called multiple times
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 4 |
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 |