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.