-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add syncing_status query parameter to eth/v1/node/health (#5790)
* Add syncing_status query parameter to eth/v1/node/health * Always validate value of syncing_status * Add 400 to getHealth error responses * Set http error status as client response status * Check status in test cases instead of error code * Fix appending '?' to URL if query params are omitted * Use composite reponse type from the server handlers * Revert "Use composite reponse type from the server handlers" This reverts commit e1cbec4. * Remove workaround in generic server test * Remove request / response from server api type * Do not forward request / response to API implementation * Set getHealth status code in route handler --------- Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
- Loading branch information
1 parent
07b16f3
commit 3ef8a00
Showing
7 changed files
with
121 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters