-
Notifications
You must be signed in to change notification settings - Fork 67
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: Reliable status for rollapp sequencer and relayer #204
Conversation
if err := json.Unmarshal(body, &response); err != nil { | ||
return false | ||
} | ||
return response.Result.NodeInfo.Network == rollappID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what u checking here? why not just check for 200OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it can be another network. As discussed on #197, sometimes the sequencer does not terminates, which can cause the endpoint to return a healthy status when it is running another rollapp.
PR Standards
Opening a pull request should be able to meet the following requirements
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: