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

exit 1 if we can't list events #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

binocarlos
Copy link
Contributor

We were seeing strange errors talking about how we can listen for events further back than 24 hours.

The theory is that the network was done for a period of time but the process kept spinning holding onto the old block number.

When the network came back - the in memory block number is now > 24 hours old and the JSON RPC errors saying you cannot go that far back in time - and then it death looped because it keeps asking for the old block number

If we get any kind of error asking for block data - let's exit and let systemd restart us to ask again - this should avoid the deadlock we were seeing in prod

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.

None yet

1 participant