Skip to content
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

Fix: Block number Returned is Not Integer. #737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ethnical
Copy link
Contributor

This PR fix an minor issue that has been introduced two year ago that making the node always returning healthy even if it's not healthy.

Now instead of returning the full JSON we only return the block number.

6fbe3625847f7028025010c5c8e9342ff9b75f6dc64fcf178dfe7b525d5b30df

tests
I tested this inside anvil to make sure this is expected.

$ ./ops/verify-geth-endpoint.sh http://localhost:8545
response: {"jsonrpc":"2.0","id":1,"result":false}
Replica is not syncing.
response: {"jsonrpc":"2.0","id":1,"result":"0x0"}
block: 0
Block height is 0.

@Ethnical Ethnical requested a review from a team as a code owner March 11, 2025 09:46
@Ethnical Ethnical enabled auto-merge March 11, 2025 09:48
@Ethnical Ethnical added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@mds1 mds1 added this pull request to the merge queue Mar 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants