Expand description
Tracks peers that consistently return failed FindBlocks or FindHeaders
responses, so the peer set can disconnect them.
Successful responses, including empty ones, reset the per-peer counter. Empty replies can be legitimate when a peer has no blocks beyond our locator; fair request routing prevents them from monopolizing discovery.
Only applies to FindBlocks and FindHeaders. An empty response to
BlocksByHash/TransactionsById is a legitimate “I don’t have this
inventory” answer, so those don’t feed the tracker.
Structs§
Constants§
- FIND_
RESPONSE_ 🔒STALL_ THRESHOLD - Consecutive failed
FindBlocks/FindHeadersresponses tolerated before the peer set disconnects a peer.