aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-01-21 12:34:40 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-01-21 12:36:41 +0100
commit6f7841d5455832bceeb0b1375baef772099d5595 (patch)
tree58dfaa61ddf765388da9e98c4ed5b16092796b32 /src/main.h
parentae2db67feec25fb89412429bd50250cb995bec87 (diff)
parentb768108d9c0b83330572711aef1e569543130d5e (diff)
Merge #7386: Add option `-permitrbf` to set transaction replacement policy
b768108 Add option `-permitrbf` to set transaction replacement policy (Wladimir J. van der Laan)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 228877641d..98069a225d 100644
--- a/src/main.h
+++ b/src/main.h
@@ -107,6 +107,8 @@ static const bool DEFAULT_TXINDEX = false;
static const unsigned int DEFAULT_BANSCORE_THRESHOLD = 100;
static const bool DEFAULT_TESTSAFEMODE = false;
+/** Default for -permitrbf */
+static const bool DEFAULT_PERMIT_REPLACEMENT = true;
/** Maximum number of headers to announce when relaying blocks with headers message.*/
static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8;
@@ -139,6 +141,7 @@ extern size_t nCoinCacheUsage;
extern CFeeRate minRelayTxFee;
extern bool fAlerts;
extern int64_t nMaxTipAge;
+extern bool fPermitReplacement;
/** Best header we've seen so far (used for getheaders queries' starting points). */
extern CBlockIndex *pindexBestHeader;