File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ using node::CalculateCacheSizes;
109
109
using node::ChainstateLoadVerifyError;
110
110
using node::ChainstateLoadingError;
111
111
using node::CleanupBlockRevFiles;
112
+ using node::DEFAULT_PERSIST_MEMPOOL;
112
113
using node::DEFAULT_PRINTPRIORITY;
113
114
using node::DEFAULT_STOPAFTERBLOCKIMPORT;
114
115
using node::LoadChainstate;
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ class ArgsManager;
11
11
12
12
namespace node {
13
13
14
+ /* *
15
+ * Default for -persistmempool, indicating whether the node should attempt to
16
+ * automatically load the mempool on start and save to disk on shutdown
17
+ */
18
+ static constexpr bool DEFAULT_PERSIST_MEMPOOL{true };
19
+
14
20
bool ShouldPersistMempool (const ArgsManager& argsman);
15
21
fs::path MempoolPath (const ArgsManager& argsman);
16
22
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ static const bool DEFAULT_CHECKPOINTS_ENABLED = true;
68
68
static const bool DEFAULT_TXINDEX = false ;
69
69
static constexpr bool DEFAULT_COINSTATSINDEX{false };
70
70
static const char * const DEFAULT_BLOCKFILTERINDEX = " 0" ;
71
- /* * Default for -persistmempool */
72
- static const bool DEFAULT_PERSIST_MEMPOOL = true ;
73
71
/* * Default for -stopatheight */
74
72
static const int DEFAULT_STOPATHEIGHT = 0 ;
75
73
/* * Block files containing a block-height within MIN_BLOCKS_TO_KEEP of ActiveChain().Tip() will not be pruned. */
You can’t perform that action at this time.
0 commit comments