-
Notifications
You must be signed in to change notification settings - Fork 973
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 --stop-at-ledger
option to stellar run
#4427
Comments
for replaying ranges, can't you just use |
🤦🏻 Ah of course, I can use the following command to get the same output but to have it stop:
Is that the only difference between |
run is used to connect to the network (so connects to peers, etc), catchup only uses history archives |
Ah, so if I want a ledger that isn't in an archive yet, I need to use run, but then run doesn't have a way to stop at the ledger I need. So I think the use case is still applicable, albeit narrow, and may not be meaningful since in the time it takes to catch up pubnet I could probably wait a similar amount of time for a checkpoint to be published. |
Description
Explain in detail the additional functionality you would like to see in stellar-core.
The ability to optionally specify a
--stop-at-ledger
when usingstellar-core run
.When the option is provided the
run
stops and exits cleanly after having processed that ledger.Explain why this feature is important
Today as a non-validator-operator user of the network I can use stellar-core to replay meta, starting at a specified ledger. For example, using the following command:
However, the command keeps going indefinitely until the process is killed. But when replaying from a specific ledger I almost always want to collect some specific range, or even just one ledger. I have to monitor the current ledger of the stellar-core and then kill it when that ledger has been passed.
Describe the solution you'd like
The ability to optionally specify a
--stop-at-ledger
when usingstellar-core run
.When the option is provided the
run
stops and exits cleanly after having processed that ledger.Describe alternatives you've considered
Scripting reading the current ledger from the /info endpoint and killing the process, but that feels so brittle.
Additional context
N/A
The text was updated successfully, but these errors were encountered: