Generic data primitives BeaconConsensusEngine
.
#13319
Labels
A-consensus
Related to the consensus engine
A-sdk
Related to reth's use as a library
D-good-first-issue
Nice and easy! A great choice to get started
S-blocked
This cannot more forward until something else changes
Describe the feature
Make
BeaconConsensusEngine
generic over data primitives.reth/crates/consensus/beacon/src/engine/mod.rs
Lines 104 to 1788 in 5b19bad
The nested type
BeaconConsensusEngineEvent
must be generalised toBeaconConsensusEngineEvent<N::Primitives>
.Then the signatures of the impl body must be fixed accordingly, i.e. where
SealedHeader
is used, we want to useSealedHeader<reth_node_types::HeaderTy<N>>
. To make this possible, we need to constraint the genericN: EngineNodeTypes
onBeaconConsensusEngine
toN: EngineNodeTypes<Primitives = EthPrimitives>
for now. Add any new adapters type aliases sidesreth_node_types::HeaderTy
that are needed and aren't defined yet inreth-node-types
.Additional context
No response
The text was updated successfully, but these errors were encountered: