aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2019-01-06 11:06:31 -0800
committerJim Posen <jim.posen@gmail.com>2019-02-22 17:38:45 -0800
commit9183d6ef656c8f3ed406821b99827f9b5f047665 (patch)
tree9357c0f274c933b4515af76f1cf62a8a89da9005 /src/init.cpp
parent62e7addb632cad77cbd5fbccbaee51c7b32505d0 (diff)
validation: Extract basic block file logic into FlatFileSeq class.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 5111baddd2..66c5995651 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -673,7 +673,7 @@ static void ThreadImport(std::vector<fs::path> vImportFiles)
int nFile = 0;
while (true) {
CDiskBlockPos pos(nFile, 0);
- if (!fs::exists(GetBlockPosFilename(pos, "blk")))
+ if (!fs::exists(GetBlockPosFilename(pos)))
break; // No block files left to reindex
FILE *file = OpenBlockFile(pos, true);
if (!file)