|
|
@ -100,6 +100,7 @@ void Shutdown() |
|
|
|
StopNode(); |
|
|
|
StopNode(); |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(cs_main); |
|
|
|
LOCK(cs_main); |
|
|
|
|
|
|
|
pwalletMain->SetBestChain(CBlockLocator(pindexBest)); |
|
|
|
if (pblocktree) |
|
|
|
if (pblocktree) |
|
|
|
pblocktree->Flush(); |
|
|
|
pblocktree->Flush(); |
|
|
|
if (pcoinsTip) |
|
|
|
if (pcoinsTip) |
|
|
@ -998,6 +999,8 @@ bool AppInit2(boost::thread_group& threadGroup) |
|
|
|
if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), "")) |
|
|
|
if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), "")) |
|
|
|
strErrors << _("Cannot write default address") << "\n"; |
|
|
|
strErrors << _("Cannot write default address") << "\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pwalletMain->SetBestChain(CBlockLocator(pindexBest)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("%s", strErrors.str().c_str()); |
|
|
|
printf("%s", strErrors.str().c_str()); |
|
|
|