hotstuff_rs::block_sync

Module messages

source
Expand description

Definitions for structured messages that are sent between replicas as part of the Block Sync protocol.

§Messages

The Block Sync protocol defines two categories of messages:

  1. Block Sync Protocol messages (BlockSyncMessage): exchanged between a sync client and sync server when the client is trying to sync with the server.
  2. Block Sync Server Advertisements (BlockSyncAdvertiseMessage): periodically broadcasted by sync servers to update the sync clients on:
    1. Their availability and commitment to providing blocks at least up to a given height (AdvertiseBlock).
    2. Whether the quorum is making progress in a future view, as evidenced by the server’s local Highest PC (AdvertisePC).

Structs§

  • A message periodically broadcasted by the sync server to:
  • A message periodically broadcasted by the sync server to let clients know about the Highest PhaseCertificate the server knows.
  • Sync request sent by a sync client to a sync server. The request includes:
  • Sync response sent by a sync server to a sync client requesting blocks. The response includes:

Enums§

  • Messages periodically broadcasted by the sync server to update clients about their availability, commitment to providing blocks up to a given height, and knowledge of the latest consensus decision.
  • Messages exchanged between a sync server and a sync client when syncing.