mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
RequestType::max_responses for LightClientUpdatesByRange (#6534)
* return the actual number of instances the request requires
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user