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

Add check on latest_block_time #51

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

george-aj
Copy link

Problem
A node can be catching_up:false yet when /status? is inspected the latest_block_time can be behind the current time.

Symptoms
This causes issues when trying to monitor missed blocks, since the node doesn't get updated, neither does the missed block counts, but yet the cosmos/slashing/v1beta1/signing_infos query will return a response as if the node was caught up.

Solution
Check that the latest_block_time is within the stalled_minutes amount and if not don't use it as an RPC node and report it as down/not synched.

Copy link
Collaborator

@dylanschultzie dylanschultzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love adding some tests in there 🔥

@dylanschultzie
Copy link
Collaborator

This might pertain to this issue as well:

#45

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