From 2af027f14f23b5ab7e699f9619315ab4ef4ed629 Mon Sep 17 00:00:00 2001 From: nzsquirrell Date: Mon, 14 Mar 2016 17:19:30 +1300 Subject: [PATCH] increase number of blocks to leave on disk when running daemon in purge mode --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index 2e91d9f3..97a13337 100644 --- a/src/main.h +++ b/src/main.h @@ -131,7 +131,7 @@ extern bool fPruneMode; /** Number of MiB of block files that we're trying to stay below. */ extern uint64_t nPruneTarget; /** Block files containing a block-height within MIN_BLOCKS_TO_KEEP of chainActive.Tip() will not be pruned. */ -static const signed int MIN_BLOCKS_TO_KEEP = 288; +static const signed int MIN_BLOCKS_TO_KEEP = 10080; // 1440 blocks per day, keep 7 days. // Require that user allocate at least 550MB for block & undo files (blk???.dat and rev???.dat) // At 1MB per block, 288 blocks = 288MB.