Merge #9133: Unset fImporting for loading mempool

79f755d Unset fImporting for loading mempool (Alex Morcos)
This commit is contained in:
Wladimir J. van der Laan 2016-11-16 10:11:35 +01:00 committed by Alexander Block
parent 0932079ea6
commit 9b9d3d1da8

View File

@ -702,6 +702,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{ {
const CChainParams& chainparams = Params(); const CChainParams& chainparams = Params();
RenameThread("dash-loadblk"); RenameThread("dash-loadblk");
{
CImportingNow imp; CImportingNow imp;
// -reindex // -reindex
@ -761,7 +763,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
LogPrintf("Stopping after block import\n"); LogPrintf("Stopping after block import\n");
StartShutdown(); StartShutdown();
} }
} // End scope of CImportingNow
LoadMempool(); LoadMempool();
} }