aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-03-09 17:12:25 -0500
committerJohn Newbery <john@johnnewbery.com>2017-03-22 11:17:17 -0400
commit91c91e140aeea291d95fb1028e7e4aa1e4381939 (patch)
tree8dc9da2cfa26a6c594433fbc9bee66439fa57fdf /src/validation.h
parent02d64bd929c9663ba38e96721c6dbd89972d043d (diff)
downloadbitcoin-91c91e140aeea291d95fb1028e7e4aa1e4381939.tar.xz
Control mempool persistence using a command line parameter.
Mempool persistence was added in 3f78562df5e86a2a0a21812047fc3a7db8cee988, and is always on. This commit introduces a command-line parameter -persistmempool, which defaults to true. When set to false: - mempool.dat is not loaded when the node starts. - mempool.dat is not written when the node stops.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index 43f0dbae34..c9b934501e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -131,7 +131,8 @@ static const bool DEFAULT_PERMIT_BAREMULTISIG = true;
static const bool DEFAULT_CHECKPOINTS_ENABLED = true;
static const bool DEFAULT_TXINDEX = false;
static const unsigned int DEFAULT_BANSCORE_THRESHOLD = 100;
-
+/** Default for -persistmempool */
+static const bool DEFAULT_PERSIST_MEMPOOL = true;
/** Default for -mempoolreplacement */
static const bool DEFAULT_ENABLE_REPLACEMENT = true;
/** Default for using fee filter */