mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Add Gloas SSE event boilerplate (#9053)
Implement boilerplate for new SSE events as specified in - https://github.com/ethereum/beacon-APIs/pull/588 While that one is not merged yet, I believe the SSE events might be utilized in Dora already. Implement the boilerplate, i.e. subscription tracking and publish queues. A PR to implement to fully implement already implementable events will follow. Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
This commit is contained in:
@@ -3158,6 +3158,21 @@ pub fn serve<T: BeaconChainTypes>(
|
||||
api_types::EventTopic::BlockGossip => {
|
||||
event_handler.subscribe_block_gossip()
|
||||
}
|
||||
api_types::EventTopic::ExecutionPayload => {
|
||||
event_handler.subscribe_execution_payload()
|
||||
}
|
||||
api_types::EventTopic::ExecutionPayloadGossip => {
|
||||
event_handler.subscribe_execution_payload_gossip()
|
||||
}
|
||||
api_types::EventTopic::ExecutionPayloadAvailable => {
|
||||
event_handler.subscribe_execution_payload_available()
|
||||
}
|
||||
api_types::EventTopic::ExecutionPayloadBid => {
|
||||
event_handler.subscribe_execution_payload_bid()
|
||||
}
|
||||
api_types::EventTopic::PayloadAttestationMessage => {
|
||||
event_handler.subscribe_payload_attestation_message()
|
||||
}
|
||||
};
|
||||
|
||||
receivers.push(
|
||||
|
||||
Reference in New Issue
Block a user