-
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
Add finalized
flag to API responses
#11747
Comments
Hey @rkapka can you please assign this issue to me ? |
Hi @thearyanag , sure. I already implemented all block endpoints. You can take care of the state ones. |
There is a way to avoid calling
|
Hey thanks for the heads up , on it now , was actually figuring out that
only/
Regards ,
aryan
…On Mon, 19 Dec 2022 at 19:33, Radosław Kapka ***@***.***> wrote:
There is a way to avoid calling HashTreeRoot on the block to check
finalization. The algorithm works as follows:
you check the parent root, if it equals the finalized checkpoint you
return false. If not then you check if the parent is final. If it is then
you return true, otherwise false. This assumes that the block is canonical.
If it's not then return false
—
Reply to this email directly, view it on GitHub
<#11747 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALRGJWOTGGODSB5ZZJH2EILWOBTJPANCNFSM6AAAAAASYQ64VA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
🚀 Feature Request
We need to implement ethereum/beacon-APIs#254
Description
Several API endpoints must return a
finalized
metadata field. This issue tracks progress of the feature:The text was updated successfully, but these errors were encountered: