-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Refactor beacon attestation validation #6446
Comments
I pick the issue as a good first issue. |
I'm locating where should I change.
Is this right place? |
Shamely, I could not find where should I change the state-transition code. |
@HiroyukiNaito Hey! Thanks for picking this up. Just want to share some background about this issue. Feel free to skip to tldr. The related change is for implementing Deneb EIP EIP-7045, which is to extend the admissible range of attestation from [n - 32, n] slots to [(Math.floor(n / 32) - 1) * 32, n] slots. You can check out our implementation #5731 and also the consensus spec here. The attestation validation logic in p2p we want to refactoring in Lodestar is to limit to lower bound of the slot in attestation by calculating
tldr; The original comment is not quite accurate about state-transition. No refactoring needs to be made for state-transition. Only
Yes. Should be a straightforward change. Let me know if you have further questions |
@ensi321 Thank you for describing the technical context of this. |
Should we move this into a function somewhere and be re-used in gossip + here + state transition? In a way to signal that this logic must be consistent between those three places
Originally posted by @dapplion in #6198 (comment)
We should.
The text was updated successfully, but these errors were encountered: