File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ struct Params;
25
25
26
26
static constexpr bool DEFAULT_STOPAFTERBLOCKIMPORT{false };
27
27
28
+ /* * The pre-allocation chunk size for blk?????.dat files (since 0.8) */
29
+ static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000 ; // 16 MiB
30
+ /* * The pre-allocation chunk size for rev?????.dat files (since 0.8) */
31
+ static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000 ; // 1 MiB
32
+ /* * The maximum size of a blk?????.dat file (since 0.8) */
33
+ static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000 ; // 128 MiB
34
+
28
35
extern std::atomic_bool fImporting ;
29
36
extern std::atomic_bool fReindex ;
30
37
/* * Pruning-related variables and constants */
Original file line number Diff line number Diff line change 66
66
static const unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT = 10000 ;
67
67
/* * Maximum kilobytes for transactions to store for processing during reorg */
68
68
static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000 ;
69
- /* * The pre-allocation chunk size for blk?????.dat files (since 0.8) */
70
- static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000 ; // 16 MiB
71
- /* * The pre-allocation chunk size for rev?????.dat files (since 0.8) */
72
- static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000 ; // 1 MiB
73
69
/* * Time to wait between writing blocks/block index to disk. */
74
70
static constexpr std::chrono::hours DATABASE_WRITE_INTERVAL{1 };
75
71
/* * Time to wait between flushing chainstate to disk. */
Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25;
71
71
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101 ;
72
72
/* * Default for -mempoolexpiry, expiration time for mempool transactions in hours */
73
73
static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336 ;
74
- /* * The maximum size of a blk?????.dat file (since 0.8) */
75
- static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000 ; // 128 MiB
76
74
/* * Maximum number of dedicated script-checking threads allowed */
77
75
static const int MAX_SCRIPTCHECK_THREADS = 15 ;
78
76
/* * -par default (number of script-checking threads, 0 = auto) */
Original file line number Diff line number Diff line change 11
11
#include < vector>
12
12
13
13
#include < interfaces/chain.h>
14
+ #include < node/blockstorage.h>
14
15
#include < node/context.h>
15
16
#include < policy/policy.h>
16
17
#include < rpc/server.h>
You can’t perform that action at this time.
0 commit comments