From 40d3423193e6f97f44c42eb3673af607627c8f7f Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Wed, 23 Oct 2024 08:47:18 +0900 Subject: [PATCH] RequestType::max_responses for LightClientUpdatesByRange (#6534) * return the actual number of instances the request requires --- beacon_node/lighthouse_network/src/rpc/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/lighthouse_network/src/rpc/protocol.rs b/beacon_node/lighthouse_network/src/rpc/protocol.rs index 16c3a13391..d0dbffe932 100644 --- a/beacon_node/lighthouse_network/src/rpc/protocol.rs +++ b/beacon_node/lighthouse_network/src/rpc/protocol.rs @@ -791,7 +791,7 @@ impl RequestType { RequestType::LightClientBootstrap(_) => 1, RequestType::LightClientOptimisticUpdate => 1, RequestType::LightClientFinalityUpdate => 1, - RequestType::LightClientUpdatesByRange(req) => req.max_requested(), + RequestType::LightClientUpdatesByRange(req) => req.count, } }