mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
node/chainstate: Decouple from ShutdownRequested
...instead allow optionally passing in a std::function<bool()>
This commit is contained in:
parent
05441c2dc5
commit
4da9c076d1
3 changed files with 7 additions and 5 deletions
|
|
@ -1430,6 +1430,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||
nBlockTreeDBCache,
|
||||
nCoinDBCache,
|
||||
nCoinCacheUsage,
|
||||
ShutdownRequested,
|
||||
[]() {
|
||||
uiInterface.ThreadSafeMessageBox(
|
||||
_("Error reading from database, shutting down."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue