-
Notifications
You must be signed in to change notification settings - Fork 667
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
Fix/terminate node gracefully #3751
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3751 +/- ##
===========================================
- Coverage 85.79% 84.88% -0.91%
===========================================
Files 302 302
Lines 286529 286534 +5
===========================================
- Hits 245830 243238 -2592
- Misses 40699 43296 +2597
... and 42 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Now, a copy of the bool
should_keep_running
, which manages system-wide shutdown, is owned by the BitcoinIndexer object.In the function
connect_handshake_backoff
, this bool is now checked in every loop. The loop terminates ifshould_keep_running
is false.Applicable issues
stacks-node
never terminates on Ctrl-C if bitcoind is unavailable #3734Additional info (benefits, drawbacks, caveats)
Checklist