Skip to main content

Module stall_tracker

Module stall_tracker 

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

FindResponseStallTracker 🔒

Constants§

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