Skip to main content

Module neighbor_sync

Module neighbor_sync 

Source
Expand description

Neighbor replication sync (Section 6.2).

Round-robin cycle management: snapshot close neighbors, iterate through them in batches of NEIGHBOR_SYNC_PEER_COUNT, exchanging hint sets.

Functionsยง

build_paid_hints_for_peer
Build paid hints for a specific peer.
build_replica_hints_for_peer
Build replica hints for a specific peer.
handle_sync_failure
Handle a failed sync attempt: remove peer from snapshot and try to fill the vacated slot.
handle_sync_request
Handle incoming sync request from a peer.
record_successful_sync
Record a successful sync with a peer.
select_sync_batch
Select the next batch of peers for sync from the current cycle.
snapshot_close_neighbors
Take a fresh snapshot of close neighbors for a new round-robin cycle.
sync_with_peer
Execute a sync session with a single peer.