From 4da9c076d1cf12728730bb1f7e8906d4e9bfaba5 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Wed, 22 Sep 2021 15:36:24 -0400 Subject: node/chainstate: Decouple from ShutdownRequested ...instead allow optionally passing in a std::function --- src/init.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 5df4d794f3..67ae94eb2c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1430,6 +1430,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) nBlockTreeDBCache, nCoinDBCache, nCoinCacheUsage, + ShutdownRequested, []() { uiInterface.ThreadSafeMessageBox( _("Error reading from database, shutting down."), -- cgit v1.2.3