mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 23:07:52 +00:00
Fix crash-at-shutdown if exiting before initializing wallet
This commit is contained in:
parent
8ab6d0a568
commit
dbc6dea1b2
@ -100,6 +100,7 @@ void Shutdown()
|
|||||||
StopNode();
|
StopNode();
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
if (pwalletMain)
|
||||||
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
|
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
|
||||||
if (pblocktree)
|
if (pblocktree)
|
||||||
pblocktree->Flush();
|
pblocktree->Flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user