The current validator cache in Charon does not properly cache all the required validator information needed for scheduling validator duties. This can lead to excessive calls to the validator's endpoint and potential performance issues, especially with large numbers of validators.
🛠️ Proposed solution
[ ] Refactor the validator cache to cache the full response from the validator endpoint
[ ] Change the validator calls and only request missing data not already cached
[ ] Add a delay of 50ms for requests involving more than 200 validators to reduce load on beacon nodes
[ ] Test the changes in a kurtosis with varying numbers of validators
🎯 Problem to be solved
The current validator cache in Charon does not properly cache all the required validator information needed for scheduling validator duties. This can lead to excessive calls to the validator's endpoint and potential performance issues, especially with large numbers of validators.
🛠️ Proposed solution