mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +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::LightClientBootstrap(_) => 1,
|
||||||
RequestType::LightClientOptimisticUpdate => 1,
|
RequestType::LightClientOptimisticUpdate => 1,
|
||||||
RequestType::LightClientFinalityUpdate => 1,
|
RequestType::LightClientFinalityUpdate => 1,
|
||||||
RequestType::LightClientUpdatesByRange(req) => req.max_requested(),
|
RequestType::LightClientUpdatesByRange(req) => req.count,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user