Expand description
Blockchain syncing implementation in Substrate.
Re-exports§
pub use service::syncing_service::SyncingService;pub use strategy::warp::WarpSyncConfig;pub use strategy::warp::WarpSyncPhase;pub use strategy::warp::WarpSyncProgress;pub use types::SyncEvent;pub use types::SyncEventStream;pub use types::SyncState;pub use types::SyncStatus;pub use types::SyncStatusProvider;
Modules§
- block_
relay_ protocol  - Block relay protocol related definitions.
 - block_
request  - Nested message and enum types in 
BlockRequest. - block_
request_ handler  - Helper for handling (i.e. answering) block requests from a remote peer via the
crate::request_responses::RequestResponsesBehaviour. - blocks
 - engine
 SyncingEngineis the actor responsible for syncing Substrate chain to tip and keep the blockchain up to date with network updates.- mock
 - Contains mock implementations of 
ChainSyncand ‘BlockDownloader’. - service
 SyncingEngine-related service code- state_
request_ handler  - Helper for handling (i.e. answering) state requests from a remote peer via the
crate::request_responses::RequestResponsesBehaviour. - strategy
 SyncingStrategydefines an interfacecrate::engine::SyncingEngineuses as a specific syncing algorithm.- types
 - Common syncing types.
 - warp_
request_ handler  - Helper for handling (i.e. answering) grandpa warp sync requests from a remote peer.
 
Structs§
- Block
Data  - Block data sent in the response.
 - Block
Request  - Request block data from a peer.
 - Block
Response  - Response to 
BlockRequest - KeyValue
State Entry  - A key value state.
 - State
Entry  - A key-value pair.
 - State
Request  - Request storage data from a peer.
 - State
Response  
Enums§
- Direction
 - Block enumeration direction.