From 39d41ada934bd7f6feea647bcb688e923128ec29 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Mon, 8 Jul 2024 14:14:20 -0700 Subject: [PATCH] update POST requests --- beacon_node/http_api/src/lib.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index 15a045e26c..6656485dce 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -1782,7 +1782,10 @@ pub fn serve( .and(reprocess_send_filter) .and(log_filter.clone()) .then( - |endpoint_version: EndpointVersion, + // V1 and V2 are identical except V2 has a consensus version header in the request. + // We only require this header for SSZ deserialization, which isn't supported for + // this endpoint presently. + |_endpoint_version: EndpointVersion, task_spawner: TaskSpawner, chain: Arc>, attestations: Vec>, @@ -1860,7 +1863,10 @@ pub fn serve( .and(warp_utils::json::json()) .and(network_tx_filter.clone()) .then( - |endpoint_version: EndpointVersion, + // V1 and V2 are identical except V2 has a consensus version header in the request. + // We only require this header for SSZ deserialization, which isn't supported for + // this endpoint presently. + |_endpoint_version: EndpointVersion, task_spawner: TaskSpawner, chain: Arc>, slashing: AttesterSlashing, @@ -3384,7 +3390,10 @@ pub fn serve( .and(network_tx_filter.clone()) .and(log_filter.clone()) .then( - |endpoint_version: EndpointVersion, + // V1 and V2 are identical except V2 has a consensus version header in the request. + // We only require this header for SSZ deserialization, which isn't supported for + // this endpoint presently. + |_endpoint_version: EndpointVersion, not_synced_filter: Result<(), Rejection>, task_spawner: TaskSpawner, chain: Arc>,