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

feature: add check for frozen node #56

Open
dylanschultzie opened this issue Feb 26, 2023 · 2 comments
Open

feature: add check for frozen node #56

dylanschultzie opened this issue Feb 26, 2023 · 2 comments

Comments

@dylanschultzie
Copy link
Collaborator

This could potentially be done by:

  1. scan /status and check if latest block height is too far away
  2. check if there are current peers?
@dylanschultzie
Copy link
Collaborator Author

Upon further inspection, it appears 1 is already being done.

I'm guessing, then, that the issue is that because events are no longer being consumed by the websocket, it can't know that the machine has stalled. Perhaps that means a secondary loop that checks cc.lastBlockTime against cc.lastBlockTime.Before(time.Now().Add(time.Duration(-cc.Alerts.Stalled)*time.Minute), but not in its current location?

@dylanschultzie
Copy link
Collaborator Author

seems like that's what's happening here... https://github.com/blockpane/tenderduty/blob/main/td2/rpc.go#L120

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

No branches or pull requests

1 participant