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