|
|
@ -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() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -209,6 +210,7 @@ void Shutdown() |
|
|
|
|
|
|
|
|
|
|
|
StopTorControl(); |
|
|
|
StopTorControl(); |
|
|
|
UnregisterNodeSignals(GetNodeSignals()); |
|
|
|
UnregisterNodeSignals(GetNodeSignals()); |
|
|
|
|
|
|
|
if (fDumpMempoolLater) |
|
|
|
DumpMempool(); |
|
|
|
DumpMempool(); |
|
|
|
|
|
|
|
|
|
|
|
if (fFeeEstimatesInitialized) |
|
|
|
if (fFeeEstimatesInitialized) |
|
|
@ -667,6 +669,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
|
|
|
|