mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
SSE and enw endpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user