Module lumina_node::syncer

source ·
Expand description

Component responsible for synchronizing block headers announced in the Celestia network.

It starts by asking the trusted peers for their current head headers and picks the latest header returned by at least two of them as the initial synchronization target called subjective_head.

Then it starts synchronizing from the genesis header up to the target requesting headers on the header-ex p2p protocol. In the meantime, it constantly checks for the latest headers announced on the header-sub p2p protocol to keep the subjective_head as close to the network_head as possible.

Structs

  • Component responsible for synchronizing block headers from the network.
  • Arguments used to configure the Syncer.
  • Status of the synchronization.

Enums

  • Representation of all the errors that can occur when interacting with the Syncer.