fix(download): header downloader initial state (#1064)

This commit is contained in:
Roman Krasiuk
2023-01-27 15:02:44 +02:00
committed by GitHub
parent 71dc531e68
commit 4a5a1dbea8
4 changed files with 133 additions and 91 deletions

View File

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