Page MenuHomePhabricator

Merge #12448: Interrupt block generation on shutdown request
ClosedPublic

Authored by jasonbcox on Tue, May 7, 00:23.

Details

Summary

0851a75 rpc: Interrupt block generation on shutdown request (João Barbosa)

Pull request description:

With this simple change, after running `bitcoin-cli -regtest generate 100000`, it is possible to interrupt `bitcoind` cleanly without waiting for the generation to complete.

Tree-SHA512: f0f7cdde242e595cfdaea31ae8bddbc25933621b63f639e813d272c2b00ce2ef52f0c14ae44954ba8c49f0fc846bcc3bfd5419e52b3347a68bb0341ce6b02d26

Backport of Core PR 12448
https://github.com/bitcoin/bitcoin/pull/12448/files

Test Plan

make check
bitcoin-cli -regtest generate 100000

  1. before this change, the above would hang until completed
  2. after this change, the above exits when you Ctrl+C

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jasonbcox created this revision.Tue, May 7, 00:23
Herald added a reviewer: Restricted Project. · View Herald TranscriptTue, May 7, 00:23
Fabien accepted this revision.Tue, May 7, 08:01
This revision is now accepted and ready to land.Tue, May 7, 08:01
This revision was automatically updated to reflect the committed changes.