Skip to content

Commit 79f755d

Browse files
committed
Unset fImporting for loading mempool
1 parent e0477f6 commit 79f755d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
601601
{
602602
const CChainParams& chainparams = Params();
603603
RenameThread("bitcoin-loadblk");
604+
605+
{
604606
CImportingNow imp;
605607

606608
// -reindex
@@ -660,7 +662,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
660662
LogPrintf("Stopping after block import\n");
661663
StartShutdown();
662664
}
663-
665+
} // End scope of CImportingNow
664666
LoadMempool();
665667
}
666668

0 commit comments

Comments
 (0)