Skip to main content

SELF_CLOSENESS_GATE_WIDTH

Constant SELF_CLOSENESS_GATE_WIDTH 

Source
pub const SELF_CLOSENESS_GATE_WIDTH: usize = K_BUCKET_SIZE; // 20usize
Expand description

Width of the self-closeness gate on client PUTs (ADR-0003): a node accepts a PUT only when it is within its own local SELF_CLOSENESS_GATE_WIDTH closest peers to the address.

Set to the client’s PUT fallback ceiling (K_BUCKET_SIZE), wider than the storage-admission width, so a client routing past full close-group members onto further peers (ADR-0002) is still accepted here, while a genuinely far node — which could only mis-attribute fresh-replication failures — is turned away.