-
-
Notifications
You must be signed in to change notification settings - Fork 300
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 syncing_status
query parameter to health API
#5702
Comments
I would like to work on this if it is still open. |
Can you give more info about this issue? |
You can find more information in the spec PR ethereum/beacon-APIs#251 and this issue ethereum/beacon-APIs#147. This requires to update the api definition here
and further changes on beacon node side
Best to check other routes that use query parameters and see how it is implemented there. You can find more about the reasoning how the API routes are defined here lodestar/packages/api/src/beacon/routes/index.ts Lines 33 to 35 in cdca9fb
The validator client won't use this feature, so no changes required there. |
Thanks for the explanation! Will work on it. |
I tried fixing this issue, but I am unable to fix it. If someone fixes this issue, I will learn from it. Thanks for the opportunity. |
All good, thanks for giving it a try. It would be great if you could provide some feedback
|
To fix the issue, I changed below lines
Is the flow correct? I have also added type boolean in If the flow is correct, |
First you need to update the types, this makes it easier to update all the other parts.
That just parses the incoming request to the right format expected in the code. lodestar/packages/api/src/beacon/routes/node.ts Lines 178 to 182 in 1bc571b
I found an issue with the current implementation, it always returned 200 even if node is syncing, this made the task also not that great for someone new to codebase. I opened a PR #5790 to implement the new query parameter and fix the issue. @worksofallwin Feel free to give this a review and ask questions if something is unclear. |
@nflaig Thanks for the reply. I will go through and I will post If I don't understand anything. |
Problem description
Latest beacon API spec requires
syncing_status
query parameterSolution description
Add syncing_status query parameter to health API
Additional context
No response
The text was updated successfully, but these errors were encountered: