-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Advice in validator guide about lookahead is contradictory #2392
Comments
that computation also relies on this rationale inspired the note in the validator guide where you don't have any lookahead on the sync committee shufflings other than 1 sync committee period bc we track the "next" committee.
this may be a bug! we may need to do a 'pubkey to index' lookup here based on |
Ah the effective balances! Damn! Thanks for looking into it |
resolved in #2394 |
This paragraph in the validator guide implies that sync committees can't be computed except at the period boundary:
However I don't think this is the case, because the sync committee indices only rely on:
base_epoch
, which is <1024 epochs back (we have 64k epochs of history in therandao_mixes
vec)base_epoch
, which can be computed accurately at any epoch after thebase_epoch
Further, the state transition relies on recomputing the sync committees in arbitrary epochs: in
process_sync_committee
a call is made toget_sync_committee_indices
.The reason for my deep-dive on this issue is that in Lighthouse we've implemented a cache for the committee indices, which can get recomputed at arbitrary points (e.g. if a state is loaded from the DB and lacks the cache it could be built anew). I just wanted to check that we're not missing something that would make this unsound.
The text was updated successfully, but these errors were encountered: