Module sc_network_common::sync
source · Expand description
Abstract interfaces and data structures related to network sync.
Modules
- Network packet message types. These get serialized and put into the lower level protocol payload.
Structs
- A peer did not behave as expected and should be reported.
- Info about a peer’s known state (both full and light).
- Wrapper for implementation-specific block request.
- Wrapper for implementation-specific block response.
- Wrapper for implementation-specific state request.
- Wrapper for implementation-specific state response.
- The sync status of a peer we are trying to sync with
- Reported state download progress.
- Syncing status and statistics.
Enums
- Block or justification request polled from
ChainSync
- Result of
ChainSync::on_block_data
. - Result of
ChainSync::on_block_justification
. - Result of
ChainSync::on_state_data
. - Result of
ChainSync::poll_block_announce_validation
. - Value polled from
ChainSync
- Syncing-related events that other protocols can subscribe to.
- Sync operation mode.
- Reported sync state.
Traits
- Something that represents the syncing strategy to download past and future blocks of the chain.
- Provides high-level status of syncing.