paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.99k stars 1.21k forks source link

feat: integrate `HeaderValidator` + make `FileClient` generic over block #12681

Closed klkvr closed 2 days ago

klkvr commented 2 days ago

Integrates HeaderValidator from https://github.com/paradigmxyz/reth/pull/12648 into ReverseHeadersDownloader. This required a small helper for casting traits (AsHeaderValidator)

Additionaly makes FileClient generic over block getting us closer to abstraction of CLI