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

If Bitcoin's already running, check if it's on the target version #409

Open
bitcoin-tools opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@bitcoin-tools
Copy link
Owner

bitcoin-tools commented Mar 12, 2024

Before launching Bitcoin, check if it's already running:

  • if Bitcoin isn't running do the status quo (launch bitcoin)
  • if Bitcoin is running, check the version
    • if it's on the target version, don't launch it again
    • if it's not on the target version, stop the current pid via bitcoin-cli, wait for it to stop, then do the status quo (launch bitcoin).
@bitcoin-tools bitcoin-tools changed the title If Bitcoin's running, check if it's on the target version If Bitcoin's already running, check if it's on the target version Mar 12, 2024
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

No branches or pull requests

1 participant