mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-07 21:45:24 -05: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