-
Notifications
You must be signed in to change notification settings - Fork 248
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
attesting_indices.len == 1
Per bits check above [AssertionError]
#1782
Comments
Indeed:
|
It's an artifact of a mismatch between different ways of checking for the number of validators an attestation represents. The "bits check above" is The important part of which is: That is, it's basing it off However, the If It's thus possible for an incorrect attestation to find itself at that line of code, exploiting the distinction between the (specified) method of checking for a non-aggregated attestation and how
The reason this hasn't shown up until recently is that #1755 adds this assertion. It required the intersection of erroneous attestation creation and the existence of that assertion, from a few days ago, to cause this crash. It's correct to check for that condition, but it can't assert unless However, because It's still an error condition, so the empty attesting indices set should be detected, simply not as an assertion. Fix coming shortly. |
Failing assertion: https://github.com/status-im/nim-beacon-chain/blob/7eaaab908cf249f981d8d36efd83663e79e5105e/beacon_chain/attestation_aggregation.nim#L229
Kim had the same crash at the same time, probably with the same attestation.
The text was updated successfully, but these errors were encountered: