Skip to main content

Module peer_sync

Module peer_sync 

Source
Expand description

Fast inventory synchronization from configured URMA peers. A peer page is an untrusted claim: every fetched package is proof-verified by admit_record against the independently selected header chain, and coverage is recorded only after a complete range has every advertised record present locally. Full-block audit (indexed_through) remains the separate, stronger claim. A peer that answers with an invalid page, package or reply is disconnected and backed off; one that stays Busy for many turns is disconnected so the connection slot it holds frees up for others. So is one that answers turn after turn without anything we can use (stale listings, unscanned pages), and a peer refused by the local connection limit gets the slot of the connected peer that progressed longest ago.

Structs§

OverlayInfo
Public overlay identity facts reported in status; never secrets.
PeerSync
Inventory peers, re-read every step: configured ones, then live ones.

Type Aliases§

ConnectedPeers
Listeners