diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 2e41fd3f5a..0e5d325573 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -2515,14 +2515,6 @@ impl BeaconChain { .observed_bls_to_execution_changes .lock() .verify_and_observe(bls_to_execution_change, head_state, &self.spec)?) - - if let Some(event_handler) = self.event_handler.as_ref() { - if event_handler.has_bls_to_execution_change_subscribers() { - event_handler.register(EventKind::BlsToExecutionChange(Box::new( - Blt_To_Execution_Change.clone().into_inner(), - ))); - } - } } /// Verify a signed BLS to execution change before allowing it to propagate on the gossip network. @@ -2562,6 +2554,14 @@ impl BeaconChain { bls_to_execution_change: SigVerifiedOp, received_pre_capella: ReceivedPreCapella, ) -> bool { + if let Some(event_handler) = self.event_handler.as_ref() { + if event_handler.has_bls_to_execution_change_subscribers() { + event_handler.register(EventKind::BlsToExecutionChange(Box::new( + bls_to_execution_change.clone().into_inner(), + ))); + } + } + if self.eth1_chain.is_some() { self.op_pool .insert_bls_to_execution_change(bls_to_execution_change, received_pre_capella) diff --git a/common/eth2/src/types.rs b/common/eth2/src/types.rs index 5b62177c0f..2bb749af9f 100644 --- a/common/eth2/src/types.rs +++ b/common/eth2/src/types.rs @@ -1082,7 +1082,7 @@ pub enum EventKind { PayloadAttributes(VersionedSsePayloadAttributes), ProposerSlashing(Box), AttesterSlashing(Box>), - BlsToExecutionChange(Box), + BlsToExecutionChange(Box), } impl EventKind {