aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-11-23 20:32:36 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-01-30 11:29:22 +0100
commitfa331db68bcc68e4c93fb45aaa30f911b0ecfe1a (patch)
treec2ac5176340e5b4a3a6fc1d1e28e60d0145c3858 /src/main.h
parent019280617aad7008e523e0bbe19cd76fd59d5e25 (diff)
downloadbitcoin-fa331db68bcc68e4c93fb45aaa30f911b0ecfe1a.tar.xz
mempool: Replace maxFeeRate of 10000*minRelayTxFee with maxTxFee
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 98069a225d..6f87d17f92 100644
--- a/src/main.h
+++ b/src/main.h
@@ -46,6 +46,12 @@ static const bool DEFAULT_ALERTS = true;
static const bool DEFAULT_WHITELISTALWAYSRELAY = true;
/** Default for -minrelaytxfee, minimum relay fee for transactions */
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
+//! -maxtxfee default
+static const CAmount DEFAULT_TRANSACTION_MAXFEE = 0.1 * COIN;
+//! Discourage users to set fees higher than this amount (in satoshis) per kB
+static const CAmount HIGH_TX_FEE_PER_KB = 0.01 * COIN;
+//! -maxtxfee will warn if called with a higher fee than this amount (in satoshis)
+static const CAmount HIGH_MAX_TX_FEE = 100 * HIGH_TX_FEE_PER_KB;
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
/** Default for -limitancestorcount, max number of in-mempool ancestors */
@@ -138,8 +144,12 @@ extern unsigned int nBytesPerSigOp;
extern bool fCheckBlockIndex;
extern bool fCheckpointsEnabled;
extern size_t nCoinCacheUsage;
+/** A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation) */
extern CFeeRate minRelayTxFee;
+/** Absolute maximum transaction fee (in satoshis) used by wallet and mempool (rejects high fee in sendrawtransaction) */
+extern CAmount maxTxFee;
extern bool fAlerts;
+/* If the tip is older than this (in seconds), the node is considered to be in initial block download. */
extern int64_t nMaxTipAge;
extern bool fPermitReplacement;