Skip to main content

IDEMPOTENCY_LOOKBACK

Constant IDEMPOTENCY_LOOKBACK 

Source
pub const IDEMPOTENCY_LOOKBACK: usize = 1000;
Expand description

Number of recent events scanned for idempotency-key collisions in ChainManager::append_idempotent.

1000 events is large enough to cover bursts of retries from any reasonable client TTL window without making the lookup O(n) over the whole chain. Configurable in a future pass if needed.