Skip to main content

TIMEOUT_EVICTION_ENABLED

Constant TIMEOUT_EVICTION_ENABLED 

Source
pub const TIMEOUT_EVICTION_ENABLED: bool = false;
Expand description

Rollout gate for timeout-driven eviction.

When false, a peer that crosses the consecutive-timeout strike threshold is logged but NOT reported to the trust engine (no eviction). This PR is a breaking wire change (old nodes cannot decode the new StorageCommitment gossip), so a not-yet-upgraded peer times out on every new audit and looks exactly like a non-storing peer; penalising timeouts during the mixed-version window would make upgraded nodes evict every old node — a death spiral.

Confirmed storage-integrity failures (DigestMismatch/KeyAbsent/ Rejected/MalformedResponse) are NEVER gated by this — those only come from a peer that actually answered with bad data, never an old node. Flip to true in a small follow-up release once the fleet has upgraded. This is a real const (not commented-out code) so both gate sites compile and stay in sync, and the flip is one line.