File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 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 */
7771static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000 ;
7872/* * The pre-allocation chunk size for blk?????.dat files (since 0.8) */
Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ static const unsigned int MIN_BLOCKS_TO_KEEP = 288;
101101static const signed int DEFAULT_CHECKBLOCKS = 6 ;
102102static 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
114114struct BlockHasher
115115{
You can’t perform that action at this time.
0 commit comments