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

Use generic header and body in `BeaconConsensusEngine` #12724

Open emhane opened 1 day ago

emhane commented 1 day ago

Describe the feature

Use the adapters introduced in https://github.com/paradigmxyz/reth/pull/12723 HeaderTy<N> and BodyTy<N>, to pass the primitives on N: EngineNodeTypes to SealedBlock and SealedHeader in BeaconConsensusEngine impl body

https://github.com/paradigmxyz/reth/blob/0c5984179e0304c11ad4c5bc0057508b65441338/crates/consensus/beacon/src/engine/mod.rs#L227-L1787

Blocked by https://github.com/paradigmxyz/reth/pull/12723

Additional context

No response

emhane commented 1 day ago

keen on this one too @tcoratger ?