Skip to main content

Module stall_tracker

Module stall_tracker 

Source
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§

FindResponseStallTracker 🔒

Constants§

FIND_RESPONSE_STALL_THRESHOLD 🔒
Consecutive failed FindBlocks/FindHeaders responses tolerated before the peer set disconnects a peer.