paradigmxyz / reth

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

chore(sdk): blanket impl `Header` for `Block` types #12660

Open emhane opened 6 days ago

emhane commented 6 days ago

Ref https://github.com/paradigmxyz/reth/issues/12575

Since we currently rely on Block type to deref to Header, this helper trait avoids explicitly having to insert block.header() everywhere with https://github.com/paradigmxyz/reth/issues/12454