HomePhabricator

node/chainstate: Decouple from ShutdownRequested

Description

node/chainstate: Decouple from ShutdownRequested

Summary:

...instead allow optionally passing in a std::function<bool()>

Partial backport of core#23280:
https://github.com/bitcoin/bitcoin/pull/23280/commits/4da9c076d1cf12728730bb1f7e8906d4e9bfaba5

Depends on D12577.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D12578

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Sep 22 2021, 19:36
FabienCommitted on Nov 22 2022, 19:38
FabienPushed on Nov 22 2022, 19:38
Reviewer
Restricted Project
Differential Revision
D12578: node/chainstate: Decouple from ShutdownRequested
Parents
rABCc333cb502df6: node/chainstate: Decouple from GetTime
Branches
Unknown
Tags
Unknown