rpc: Make unloadwallet wait for complete wallet unload

This commit is contained in:
João Barbosa
2018-12-12 23:21:19 +00:00
parent e7b88ecbc9
commit c37851de57
5 changed files with 56 additions and 12 deletions

View File

@@ -262,10 +262,10 @@ void Shutdown(InitInterfaces& interfaces)
LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what());
}
#endif
interfaces.chain_clients.clear();
UnregisterAllValidationInterfaces();
GetMainSignals().UnregisterBackgroundSignalScheduler();
GetMainSignals().UnregisterWithMempoolSignals(mempool);
interfaces.chain_clients.clear();
globalVerifyHandle.reset();
ECC_Stop();
LogPrintf("%s: done\n", __func__);