Expand description
Tracks peers that consistently return empty or failed FindBlocks or
FindHeaders responses, so the peer set can disconnect them.
A peer returning a single empty response may just be syncing itself; a peer that does so repeatedly stalls the syncer by forcing retries to others. The counter is per-peer and resets on any useful (non-empty) response.
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 empty or failed
FindBlocks/FindHeadersresponses tolerated before the peer set disconnects a peer.