mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Reduce frequency of polling unknown validators to avoid overwhelming the Beacon Node (#5628)
* Reduce frequency of polling unknown validators. * Move slot calculation into for loop. * Simplify logic. Co-authored-by: Michael Sproul <micsproul@gmail.com> * Fix formatting
This commit is contained in:
@@ -476,6 +476,7 @@ impl<E: EthSpec> ProductionValidatorClient<E> {
|
||||
slot_clock: slot_clock.clone(),
|
||||
beacon_nodes: beacon_nodes.clone(),
|
||||
validator_store: validator_store.clone(),
|
||||
unknown_validator_next_poll_slots: <_>::default(),
|
||||
spec: context.eth2_config.spec.clone(),
|
||||
context: duties_context,
|
||||
enable_high_validator_count_metrics: config.enable_high_validator_count_metrics,
|
||||
|
||||
Reference in New Issue
Block a user