Skip to content

Commit

Permalink
RequestType::max_responses for LightClientUpdatesByRange (#6534)
Browse files Browse the repository at this point in the history
* return the actual number of instances the request requires
  • Loading branch information
ackintosh authored Oct 22, 2024
1 parent ad229a6 commit 40d3423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/lighthouse_network/src/rpc/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ impl<E: EthSpec> RequestType<E> {
RequestType::LightClientBootstrap(_) => 1,
RequestType::LightClientOptimisticUpdate => 1,
RequestType::LightClientFinalityUpdate => 1,
RequestType::LightClientUpdatesByRange(req) => req.max_requested(),
RequestType::LightClientUpdatesByRange(req) => req.count,
}
}

Expand Down

0 comments on commit 40d3423

Please sign in to comment.