Skip to content

[Feature] Block and Body trait #2033

@mattsse

Description

@mattsse

Component

consensus, eips, genesis

Describe the feature you would like

Introduce Block and Body trait

we have these in reth

https://github.com/paradigmxyz/reth/blob/1a4f5441f38447e5c6e2277eb6849f11f7492cf0/crates/primitives-traits/src/block/body.rs#L21-L21

https://github.com/paradigmxyz/reth/blob/1a4f5441f38447e5c6e2277eb6849f11f7492cf0/crates/primitives-traits/src/block/mod.rs#L51-L51

for header and transaction, reth's specific traits inherit core logic from alloy, e.g:

https://github.com/paradigmxyz/reth/blob/1a4f5441f38447e5c6e2277eb6849f11f7492cf0/crates/primitives-traits/src/block/header.rs#L15-L28

we should start doing the same for block and body, but without the associated types

this will make compat easier, eg: #2032

TODO

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions