aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2016-11-04 14:34:36 -0400
committerAlex Morcos <morcos@chaincode.com>2016-11-11 09:33:16 -0500
commit79f755db4114ad25c6f856c9a07e7101f2044af3 (patch)
treeb60306c176cf1cffeb5aa76c7d19619ee62c8410 /src/init.cpp
parente0477f6d20726d958685e44ea33f448a0c3ae15c (diff)
Unset fImporting for loading mempool
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 31e3efb459..b5606069e1 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -601,6 +601,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{
const CChainParams& chainparams = Params();
RenameThread("bitcoin-loadblk");
+
+ {
CImportingNow imp;
// -reindex
@@ -660,7 +662,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
LogPrintf("Stopping after block import\n");
StartShutdown();
}
-
+ } // End scope of CImportingNow
LoadMempool();
}