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

Prompt user before going backwards to catchpoint #96

Open
joe-p opened this issue Jun 12, 2023 · 2 comments
Open

Prompt user before going backwards to catchpoint #96

joe-p opened this issue Jun 12, 2023 · 2 comments

Comments

@joe-p
Copy link

joe-p commented Jun 12, 2023

Problem

If a user runs conduit with the -r flag to specify a specific start round, then exits the process, then reruns the same command, conduit will immediately set the follower node back to the most recent catchpoint and restart the entire catchup process, which is very time consuming.

Solution

Have conduit prompt the user if they want to revert to the given round. Probably good to have a flag to automatically answer yes for non-interactive environments.

Dependencies

None, should be minimal effort. I can take a crack at it this week but don't have a ton of Go experience.

Urgency

Medium? Definitely would cause for less head-to-desk moments when developing/deploying conduit.

@joe-p joe-p changed the title Prompt user before go backwards to catchpoint Prompt user before going backwards to catchpoint Jun 12, 2023
@winder
Copy link
Contributor

winder commented Jun 13, 2023

How about an allow-backwards-catchup option in the algod importer? The command line flags are intentionally kept very minimal.

A PR for this feature would be appreciated.

@joe-p
Copy link
Author

joe-p commented Jun 13, 2023

Seems reasonable to me. Will work on it this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants