Skip to main content

Module sync

Module sync 

Source
Expand description

Block sync: allows a node that is behind to catch up by requesting missing blocks from peers and replaying the commit lifecycle.

Functionsยง

replay_blocks
Replay a batch of blocks: store them and run the application lifecycle. Validates chain continuity (parent_hash linkage).
sync_to_tip
Run block sync: request missing blocks from peers and replay them.