Skip to content

Commit 781f6b9

Browse files
committed
Fix 17383
1 parent bf30d9a commit 781f6b9

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/validation.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@
6767
#define MICRO 0.000001
6868
#define MILLI 0.001
6969

70-
/**
71-
* An extra transaction can be added to a package, as long as it only has one
72-
* ancestor and is no larger than this. Not really any reason to make this
73-
* configurable as it doesn't materially change DoS parameters.
74-
*/
75-
static const unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT = 10000;
7670
/** Maximum kilobytes for transactions to store for processing during reorg */
7771
static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000;
7872
/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */

src/validation.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ static const unsigned int MIN_BLOCKS_TO_KEEP = 288;
101101
static const signed int DEFAULT_CHECKBLOCKS = 6;
102102
static const unsigned int DEFAULT_CHECKLEVEL = 3;
103103

104-
// Require that user allocate at least 550 MiB for block & undo files (blk???.dat and rev???.dat)
105-
// At 1MB per block, 288 blocks = 288MB.
106-
// Add 15% for Undo data = 331MB
107-
// Add 20% for Orphan block rate = 397MB
108-
// We want the low water mark after pruning to be at least 397 MB and since we prune in
104+
// Require that user allocate at least 945MB for block & undo files (blk???.dat and rev???.dat)
105+
// At 2MB per block, 288 blocks = 576MB.
106+
// Add 15% for Undo data = 662MB
107+
// Add 20% for Orphan block rate = 794MB
108+
// We want the low water mark after pruning to be at least 794 MB and since we prune in
109109
// full block file chunks, we need the high water mark which triggers the prune to be
110-
// one 128MB block file + added 15% undo data = 147MB greater for a total of 545MB
111-
// Setting the target to >= 550 MiB will make it likely we can respect the target.
112-
static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024;
110+
// one 128MB block file + added 15% undo data = 147MB greater for a total of 941MB
111+
// Setting the target to > than 945MB will make it likely we can respect the target.
112+
static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 945 * 1024 * 1024;
113113

114114
struct BlockHasher
115115
{

0 commit comments

Comments
 (0)