mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-07 08:50:26 +02:00
Fix crash-at-shutdown if exiting before initializing wallet
This commit is contained in:
@ -100,6 +100,7 @@ void Shutdown()
|
||||
StopNode();
|
||||
{
|
||||
LOCK(cs_main);
|
||||
if (pwalletMain)
|
||||
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
|
||||
if (pblocktree)
|
||||
pblocktree->Flush();
|
||||
|
Reference in New Issue
Block a user