Gloas gossip boilerplate (#8700)

All the required boilerplate for gloas gossip. We'll include the gossip message processing logic in a separate PR


  


Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com>

Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
Eitan Seri-Levi
2026-01-27 23:12:48 -08:00
committed by GitHub
parent f7b5c7ee3f
commit b202e98dd9
11 changed files with 532 additions and 12 deletions

View File

@@ -486,6 +486,49 @@ impl<T: BeaconChainTypes> Router<T> {
bls_to_execution_change,
),
),
PubsubMessage::ExecutionPayload(signed_execution_payload_envelope) => {
trace!(%peer_id, "Received a signed execution payload envelope");
self.handle_beacon_processor_send_result(
self.network_beacon_processor.send_gossip_execution_payload(
message_id,
peer_id,
signed_execution_payload_envelope,
),
)
}
PubsubMessage::PayloadAttestation(payload_attestation_message) => {
trace!(%peer_id, "Received a payload attestation message");
self.handle_beacon_processor_send_result(
self.network_beacon_processor
.send_gossip_payload_attestation(
message_id,
peer_id,
payload_attestation_message,
),
)
}
PubsubMessage::ExecutionPayloadBid(execution_payload_bid) => {
trace!(%peer_id, "Received a signed execution payload bid");
self.handle_beacon_processor_send_result(
self.network_beacon_processor
.send_gossip_execution_payload_bid(
message_id,
peer_id,
execution_payload_bid,
),
)
}
PubsubMessage::ProposerPreferences(proposer_preferences) => {
trace!(%peer_id, "Received signed proposer preferences");
self.handle_beacon_processor_send_result(
self.network_beacon_processor
.send_gossip_proposer_preferences(
message_id,
peer_id,
proposer_preferences,
),
)
}
}
}