|
|
@ -130,6 +130,7 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
std::atomic<bool> fRequestShutdown(false);
|
|
|
|
std::atomic<bool> fRequestShutdown(false);
|
|
|
|
|
|
|
|
std::atomic<bool> fDumpMempoolLater(false);
|
|
|
|
|
|
|
|
|
|
|
|
void StartShutdown()
|
|
|
|
void StartShutdown()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -211,7 +212,8 @@ void Shutdown()
|
|
|
|
|
|
|
|
|
|
|
|
StopTorControl();
|
|
|
|
StopTorControl();
|
|
|
|
UnregisterNodeSignals(GetNodeSignals());
|
|
|
|
UnregisterNodeSignals(GetNodeSignals());
|
|
|
|
DumpMempool();
|
|
|
|
if (fDumpMempoolLater)
|
|
|
|
|
|
|
|
DumpMempool();
|
|
|
|
|
|
|
|
|
|
|
|
if (fFeeEstimatesInitialized)
|
|
|
|
if (fFeeEstimatesInitialized)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -669,6 +671,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // End scope of CImportingNow
|
|
|
|
} // End scope of CImportingNow
|
|
|
|
LoadMempool();
|
|
|
|
LoadMempool();
|
|
|
|
|
|
|
|
fDumpMempoolLater = !fRequestShutdown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** Sanity checks
|
|
|
|
/** Sanity checks
|
|
|
|