feat: relax bounds for EngineApiTreeHandler (#13257)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2024-12-10 13:06:39 +04:00
committed by GitHub
parent d856c8e5bc
commit da99986ea2
9 changed files with 139 additions and 116 deletions

View File

@ -2,7 +2,7 @@ use alloy_consensus::BlockHeader;
use alloy_primitives::B256;
use alloy_rpc_types_engine::ForkchoiceState;
use reth_engine_primitives::ForkchoiceStatus;
use reth_primitives::{EthPrimitives, NodePrimitives, SealedBlock, SealedHeader};
use reth_primitives::{EthPrimitives, NodePrimitives, SealedBlockFor, SealedHeader};
use std::{
fmt::{Display, Formatter, Result},
sync::Arc,
@ -15,9 +15,9 @@ pub enum BeaconConsensusEngineEvent<N: NodePrimitives = EthPrimitives> {
/// The fork choice state was updated, and the current fork choice status
ForkchoiceUpdated(ForkchoiceState, ForkchoiceStatus),
/// A block was added to the fork chain.
ForkBlockAdded(Arc<SealedBlock<N::BlockHeader, N::BlockBody>>, Duration),
ForkBlockAdded(Arc<SealedBlockFor<N::Block>>, Duration),
/// A block was added to the canonical chain, and the elapsed time validating the block
CanonicalBlockAdded(Arc<SealedBlock<N::BlockHeader, N::BlockBody>>, Duration),
CanonicalBlockAdded(Arc<SealedBlockFor<N::Block>>, Duration),
/// A canonical chain was committed, and the elapsed time committing the data
CanonicalChainCommitted(Box<SealedHeader<N::BlockHeader>>, Duration),
/// The consensus engine is involved in live sync, and has specific progress