15 breaking releases
new 0.25.0 | Mar 26, 2023 |
---|---|
0.23.0 | Feb 26, 2023 |
0.15.0 | Dec 21, 2022 |
0.0.0 |
|
#2059 in Magic Beans
338 downloads per month
Used in 8 crates
(2 directly)
2MB
43K
SLoC
sc-network-sync
Auto-generated README.md for publishing to crates.io
lib.rs
:
Contains the state of the chain synchronization process
At any given point in time, a running node tries as much as possible to be at the head of the chain. This module handles the logic of which blocks to request from remotes, and processing responses. It yields blocks to check and potentially move to the database.
Usage
The ChainSync
struct maintains the state of the block requests. Whenever something happens on
the network, or whenever a block has been successfully verified, call the appropriate method in
order to update it.
Dependencies
~47–87MB
~1.5M SLoC