Crate sc_network_sync
source ·Expand description
Blockchain syncing implementation in Substrate.
Re-exports§
pub use service::syncing_service::SyncingService;pub use strategy::warp::WarpSyncParams;pub use strategy::warp::WarpSyncPhase;pub use strategy::warp::WarpSyncProgress;
Modules§
- Block relay protocol related definitions.
- Helper for handling (i.e. answering) block requests from a remote peer via the
crate::request_responses::RequestResponsesBehaviour. SyncingEngineis the actor responsible for syncing Substrate chain to tip and keep the blockchain up to date with network updates.- Contains mock implementations of
ChainSyncand ‘BlockDownloader’. SyncingEngine-related service code- Helper for handling (i.e. answering) state requests from a remote peer via the
crate::request_responses::RequestResponsesBehaviour. SyncingStrategyis a proxy betweencrate::engine::SyncingEngineand specific syncing algorithms.- Helper for handling (i.e. answering) grandpa warp sync requests from a remote peer.
Structs§
- Syncing status and statistics.
Enums§
- Syncing-related events that other protocols can subscribe to.
- Reported sync state.
Traits§
- Provides high-level status of syncing.