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 Nov 21, 2022

#2059 in Magic Beans

Download history 72/week @ 2022-12-09 233/week @ 2022-12-16 69/week @ 2022-12-23 16/week @ 2022-12-30 59/week @ 2023-01-06 52/week @ 2023-01-13 65/week @ 2023-01-20 62/week @ 2023-01-27 108/week @ 2023-02-03 115/week @ 2023-02-10 139/week @ 2023-02-17 171/week @ 2023-02-24 111/week @ 2023-03-03 54/week @ 2023-03-10 56/week @ 2023-03-17 115/week @ 2023-03-24

338 downloads per month
Used in 8 crates (2 directly)

GPL-3.0-or-later…

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