node/chainstate: Decouple from ShutdownRequested

...instead allow optionally passing in a std::function<bool()>
This commit is contained in:
Carl Dong
2021-09-22 15:36:24 -04:00
parent 05441c2dc5
commit 4da9c076d1
3 changed files with 7 additions and 5 deletions

View File

@@ -1430,6 +1430,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
nBlockTreeDBCache,
nCoinDBCache,
nCoinCacheUsage,
ShutdownRequested,
[]() {
uiInterface.ThreadSafeMessageBox(
_("Error reading from database, shutting down."),