@ -100,7 +100,8 @@ void Shutdown()
StopNode();
{
LOCK(cs_main);
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
if (pwalletMain)
if (pblocktree)
pblocktree->Flush();
if (pcoinsTip)