Skip to content

Commit

Permalink
fix(download): header downloader initial state (paradigmxyz#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored and literallymarvellous committed Feb 5, 2023
1 parent 149f702 commit 0cff916
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 92 deletions.
9 changes: 1 addition & 8 deletions bin/reth/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,7 @@ impl Command {
headers::linear::LinearDownloadBuilder::default()
.request_limit(config.stages.headers.downloader_batch_size)
.stream_batch_size(config.stages.headers.commit_threshold as usize)
// NOTE: the head and target will be set from inside the stage before the
// downloader is called
.build(
consensus.clone(),
fetch_client.clone(),
Default::default(),
Default::default(),
),
.build(consensus.clone(), fetch_client.clone()),
);

// Spawn bodies downloader
Expand Down
Loading

0 comments on commit 0cff916

Please sign in to comment.