Module darkfid::proto::protocol_sync

source ·
Expand description

Validator blockchain sync protocol

Structs§

  • Structure represening a request to ask a node a fork sequence. If we include a specific fork tip, they have to return its sequence, otherwise they respond with their best fork sequence. We also include our own canonical(finalized) tip, so they can verify we follow the same sequence.
  • Structure representing the response to ForkSyncRequest, containing the requested fork sequence.
  • Structure represening a request to ask a node for up to BATCH headers before the provided header height.
  • Structure representing the response to HeaderSyncRequest, containing up to BATCH headers before the requested block height.
  • Structure represening a request to ask a node for up toBATCH blocks of provided headers.
  • Structure representing the response to SyncRequest, containing up to BATCH blocks after the requested block height.
  • Structure represening a request to ask a node for their current canonical(finalized) tip block hash, if they are synced. We also include our own tip, so they can verify we follow the same sequence.
  • Structure representing the response to TipRequest, containing a boolean flag to indicate if we are synced, and our canonical(finalized) tip block height and hash.

Constants§