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:
Roman Krasiuk
2023-01-04 11:25:40 +02:00
committed by GitHub
parent 6407b5087e
commit c60495df7e
6 changed files with 131 additions and 43 deletions

View File

@ -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)