SSE and enw endpoint

This commit is contained in:
Eitan Seri- Levi
2026-02-13 17:21:22 -08:00
parent e5598d529c
commit 5466b8a241
8 changed files with 231 additions and 6 deletions

View File

@@ -1101,6 +1101,14 @@ impl<T: BeaconChainTypes> GossipVerifiedBlock<T> {
})));
}
// Beacon API execution_payload_bid events
if let Some(event_handler) = chain.event_handler.as_ref()
&& event_handler.has_execution_payload_bid_subscribers()
&& let Ok(bid) = block.message().body().signed_execution_payload_bid()
{
event_handler.register(EventKind::ExecutionPayloadBid(Box::new(bid.clone())));
}
// Having checked the proposer index and the block root we can cache them.
let consensus_context = ConsensusContext::new(block.slot())
.set_current_block_root(block_root)