mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
rpc: clarify getblockfrompeer behavior when called multiple times
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user