-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement getStateValidators in lodestar-validator #2234
Conversation
Code Climate has analyzed commit 1c52b59 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
We want to update
(using https://ethereum.github.io/eth2.0-APIs/#/Beacon/getStateValidators), and then only call that once in updateValidators
|
for the request you linked (from the eth2 api docs), that would return all the validators for the whole state. the other similar call is this one, which just gets one validator per id: so in order to stay within the spec, wouldn't we just call getStateValidator in batch like i'm doing here? (since i'm assuming we don't want to fetch the whole state validators every time we run |
The |
ah gotcha, i didn't see that. i'll restructure this PR accordingly |
resolve #2232, #2235, and #2293 by implementing
getStateValidators
on the lodestar-validator client API side and then use that insideupdateValidators()