diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 8eeb75fd7d..2e41fd3f5a 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -2515,6 +2515,14 @@ 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. diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index 024e268e2a..fe2a54d71f 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -4364,6 +4364,9 @@ pub fn serve( api_types::EventTopic::ProposerSlashing => { event_handler.subscribe_proposer_slashing() } + api_types::EventTopic::BlsToExecutionChange => { + event_handler.subscribe_bls_to_execution_change() + } }; receivers.push(