mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
rpc: clarify getblockfrompeer behavior when called multiple times
This commit is contained in:
parent
0e3d7c5ee1
commit
809d66bb65
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue