mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: integrate HeaderValidator + make FileClient generic over block (#12681)
This commit is contained in:
@ -73,7 +73,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
|
||||
{
|
||||
// building network downloaders using the fetch client
|
||||
let header_downloader = ReverseHeadersDownloaderBuilder::new(config.stages.headers)
|
||||
.build(client.clone(), Arc::clone(&consensus))
|
||||
.build(client.clone(), consensus.clone().as_header_validator())
|
||||
.into_task_with(task_executor);
|
||||
|
||||
let body_downloader = BodiesDownloaderBuilder::new(config.stages.bodies)
|
||||
|
||||
Reference in New Issue
Block a user