mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(sync): update sync state within pipeline (#697)
* feat(sync): update sync state within pipeline * address pr comments * fix comment
This commit is contained in:
@ -119,6 +119,7 @@ impl Command {
|
||||
// TODO: Remove magic numbers
|
||||
let fetch_client = Arc::new(network.fetch_client().await?);
|
||||
let mut pipeline = reth_stages::Pipeline::default()
|
||||
.with_sync_state_updater(network.clone())
|
||||
.push(HeaderStage {
|
||||
downloader: headers::linear::LinearDownloadBuilder::default()
|
||||
.batch_size(config.stages.headers.downloader_batch_size)
|
||||
|
||||
Reference in New Issue
Block a user