Serve rpc by range and by root:

This commit is contained in:
Eitan Seri- Levi
2026-02-24 00:55:29 -08:00
parent dcc43e3d20
commit ffc2b97699
19 changed files with 1140 additions and 8 deletions

View File

@@ -229,6 +229,24 @@ impl<T: BeaconChainTypes> Router<T> {
request,
),
),
RequestType::PayloadEnvelopesByRoot(request) => self
.handle_beacon_processor_send_result(
self.network_beacon_processor
.send_payload_envelopes_by_roots_request(
peer_id,
inbound_request_id,
request,
),
),
RequestType::PayloadEnvelopesByRange(request) => self
.handle_beacon_processor_send_result(
self.network_beacon_processor
.send_payload_envelopes_by_range_request(
peer_id,
inbound_request_id,
request,
),
),
RequestType::BlobsByRange(request) => self.handle_beacon_processor_send_result(
self.network_beacon_processor.send_blobs_by_range_request(
peer_id,
@@ -309,6 +327,11 @@ impl<T: BeaconChainTypes> Router<T> {
Response::DataColumnsByRange(data_column) => {
self.on_data_columns_by_range_response(peer_id, app_request_id, data_column);
}
// TODO(EIP-7732): implement outgoing payload envelopes by range and root
// responses once sync manager requests them.
Response::PayloadEnvelopesByRoot(_) | Response::PayloadEnvelopesByRange(_) => {
unreachable!()
}
// Light client responses should not be received
Response::LightClientBootstrap(_)
| Response::LightClientOptimisticUpdate(_)