paradigmxyz / reth

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

Port BlockBody functions to alloy #11208

Open mattsse opened 1 week ago

mattsse commented 1 week ago

Describe the feature

we can reuse alloy's BlockBody type that is now identical to:

https://github.com/paradigmxyz/reth/blob/1e0a35e744633e605cf6ddd24f4b1c9d73b198c2/crates/primitives/src/block.rs#L577-L674

if we remove as many functions there as possible:

https://github.com/alloy-rs/alloy/blob/241bc6ea91042c2e43dc95cf39427622be179b59/crates/consensus/src/block.rs#L28-L37

some of them must be restricted to Transaction trait.

some might not be possible rn

Additional context

No response

PanGan21 commented 1 week ago

Hi! I was looking at this issue. I think new alloy release is required for this right?

Abhishekkochar commented 6 days ago

@mattsse Don’t we need the latest version of Alloy for this? We are unable to import BlockBody with the currently implemented version.