@@ -19,7 +19,7 @@ use reth_chain_state::{
1919} ;
2020use reth_consensus:: { Consensus , FullConsensus } ;
2121use reth_engine_primitives:: {
22- BeaconConsensusEngineEvent , BeaconEngineMessage , BeaconOnNewPayloadError , ExecutionPayload ,
22+ BeaconEngineMessage , BeaconOnNewPayloadError , ConsensusEngineEvent , ExecutionPayload ,
2323 ForkchoiceStateTracker , OnForkChoiceUpdated ,
2424} ;
2525use reth_errors:: { ConsensusError , ProviderResult } ;
@@ -518,7 +518,7 @@ where
518518 . record_payload_validation ( validation_start. elapsed ( ) . as_secs_f64 ( ) ) ;
519519
520520 let num_hash = payload. num_hash ( ) ;
521- let engine_event = BeaconConsensusEngineEvent :: BlockReceived ( num_hash) ;
521+ let engine_event = ConsensusEngineEvent :: BlockReceived ( num_hash) ;
522522 self . emit_event ( EngineApiEvent :: BeaconConsensus ( engine_event) ) ;
523523
524524 let block_hash = num_hash. hash ;
@@ -1064,7 +1064,7 @@ where
10641064 self . state . tree_state . insert_executed ( block. clone ( ) ) ;
10651065 self . metrics . engine . inserted_already_executed_blocks . increment ( 1 ) ;
10661066 self . emit_event ( EngineApiEvent :: BeaconConsensus (
1067- BeaconConsensusEngineEvent :: CanonicalBlockAdded ( block, now. elapsed ( ) ) ,
1067+ ConsensusEngineEvent :: CanonicalBlockAdded ( block, now. elapsed ( ) ) ,
10681068 ) ) ;
10691069 }
10701070 EngineApiRequest :: Beacon ( request) => {
@@ -1085,7 +1085,7 @@ where
10851085 . set_latest ( state, res. outcome . forkchoice_status ( ) ) ;
10861086
10871087 // emit an event about the handled FCU
1088- self . emit_event ( BeaconConsensusEngineEvent :: ForkchoiceUpdated (
1088+ self . emit_event ( ConsensusEngineEvent :: ForkchoiceUpdated (
10891089 state,
10901090 res. outcome . forkchoice_status ( ) ,
10911091 ) ) ;
@@ -1626,7 +1626,7 @@ where
16261626
16271627 // insert the head block into the invalid header cache
16281628 self . state . invalid_headers . insert_with_invalid_ancestor ( head. hash ( ) , invalid) ;
1629- self . emit_event ( BeaconConsensusEngineEvent :: InvalidBlock ( Box :: new ( head) ) ) ;
1629+ self . emit_event ( ConsensusEngineEvent :: InvalidBlock ( Box :: new ( head) ) ) ;
16301630
16311631 Ok ( status)
16321632 }
@@ -1907,7 +1907,7 @@ where
19071907 self . canonical_in_memory_state . notify_canon_state ( notification) ;
19081908
19091909 // emit event
1910- self . emit_event ( BeaconConsensusEngineEvent :: CanonicalChainCommitted (
1910+ self . emit_event ( ConsensusEngineEvent :: CanonicalChainCommitted (
19111911 Box :: new ( tip) ,
19121912 start. elapsed ( ) ,
19131913 ) ) ;
@@ -2155,9 +2155,9 @@ where
21552155 // emit insert event
21562156 let elapsed = start. elapsed ( ) ;
21572157 let engine_event = if is_fork {
2158- BeaconConsensusEngineEvent :: ForkBlockAdded ( executed, elapsed)
2158+ ConsensusEngineEvent :: ForkBlockAdded ( executed, elapsed)
21592159 } else {
2160- BeaconConsensusEngineEvent :: CanonicalBlockAdded ( executed, elapsed)
2160+ ConsensusEngineEvent :: CanonicalBlockAdded ( executed, elapsed)
21612161 } ;
21622162 self . emit_event ( EngineApiEvent :: BeaconConsensus ( engine_event) ) ;
21632163
@@ -2296,7 +2296,7 @@ where
22962296
22972297 // keep track of the invalid header
22982298 self . state . invalid_headers . insert ( block. block_with_parent ( ) ) ;
2299- self . emit_event ( EngineApiEvent :: BeaconConsensus ( BeaconConsensusEngineEvent :: InvalidBlock (
2299+ self . emit_event ( EngineApiEvent :: BeaconConsensus ( ConsensusEngineEvent :: InvalidBlock (
23002300 Box :: new ( block) ,
23012301 ) ) ) ;
23022302 Ok ( PayloadStatus :: new (
0 commit comments