Skip to content

Commit 37c6855

Browse files
knstUdjinM6
andauthored
fix: priority -fastprune over -tinyblock
Co-authored-by: UdjinM6 <[email protected]>
1 parent 375bf9d commit 37c6855

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node/blockstorage.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,9 @@ void UnlinkPrunedFiles(const std::set<int>& setFilesToPrune)
589589

590590
static FlatFileSeq BlockFileSeq()
591591
{
592-
return FlatFileSeq(gArgs.GetBlocksDirPath(), "blk", gArgs.GetBoolArg("-tinyblk", false) ? 0x10000 /* 64kb */ :
593-
(gArgs.GetBoolArg("-fastprune", false) ? 0x4000 /* 16kb */ : BLOCKFILE_CHUNK_SIZE));
592+
return FlatFileSeq(gArgs.GetBlocksDirPath(), "blk",
593+
gArgs.GetBoolArg("-fastprune", false) ? 0x4000 /* 16kb */ :
594+
(gArgs.GetBoolArg("-tinyblk", false) ? 0x10000 /* 64kb */ : BLOCKFILE_CHUNK_SIZE));
594595
}
595596

596597
static FlatFileSeq UndoFileSeq()

0 commit comments

Comments
 (0)