Expand description
Bounded multi-peer Handshake light-header synchronization.
A round requests the same locator from a bounded peer set, validates every response independently on a clone of the current chain, chooses the greatest-chainwork result, and requires configurable peer agreement. Equal-work divergent tips fail closed. Durable checkpoints and deep reorg recovery remain storage-adapter responsibilities.
Structs§
- Header
Round Outcome - Completed agreement round plus the exact newly accepted header batch.
- Header
Round Request - Request shared by every peer selected for one round.
- Header
Sync - Bounded multi-peer header synchronizer.
- PeerId
- Opaque peer identity; debug output never reveals it.
- Peer
Status - Name-free per-peer synchronization status.
- Sync
Config - Header synchronization policy.
- Sync
Status - Immutable synchronization summary.
Enums§
- Sync
Error - Header synchronization configuration, round, peer, or consensus failure.
- Sync
State - Header authority synchronization state.
Constants§
- DEFAULT_
MAX_ PEERS - Default maximum simultaneously tracked peers.
- DEFAULT_
MAX_ PEER_ FAILURES - Default invalid-round failures before a peer is locally banned.
- DEFAULT_
MINIMUM_ PEER_ AGREEMENT - Default minimum matching valid responses.
- DEFAULT_
ROUND_ TIMEOUT_ SECONDS - Default header round deadline.