-
Notifications
You must be signed in to change notification settings - Fork 6
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
vm.latestEpochInformation.slots -- index out of range #109
Comments
This occurs when the networkid's don't match. slots should have 2 * epochLength elements and earliestSlot is defined as We should add an RPC method to get the hash of the config so that the validator module can compare it with it's config. Add an RPC method to the beaconrpc.proto to GetConfigHash and have it return a message with the config hash bytes. |
I added GetConfigHash and compared it in validator. See 9148c35 The validator uses the same network ID with Beacon and the newly added check succeeds. |
I found the reason. It's caused by my newly added epoch age check in
When the condition is satisfied, the
Then Seems we need to deal with when |
Yep, we should do that. Just return early if we don't have epoch info. |
I added early return if there is no epoch info. Message
Seems an epoch update was skipped due to the epoch was too far from now, then it goes out of range. |
Branch: master
Code (in validatormanager.go):
Stack trace:
The text was updated successfully, but these errors were encountered: