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

feat(relayer): Allow resync flag option to restart processing from block 0 #266

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented Nov 14, 2022

Resolves #250

This PR allows a resync option as a CLI arg. This will start processing over, in case of missed events, database wipe, or necessary re-processing if we had errored out events.

Starting from block 0, we will reprocess and set the new latestBlockProcessed in the database to 0, so the next time you run sync, it will continue on from where this resync command stopped.

@vercel
Copy link

vercel bot commented Nov 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
website ⬜️ Ignored (Inspect) Nov 14, 2022 at 5:51PM (UTC)

@cyberhorsey cyberhorsey marked this pull request as ready for review November 14, 2022 17:47
@dantaik dantaik merged commit 6b01cbe into main Nov 15, 2022
@dantaik dantaik deleted the resync_flag branch November 15, 2022 06:49
@github-actions github-actions bot mentioned this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[relayer] implement resync cli flag to start processing over
3 participants