aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArvid Norberg <arvid@blockstream.io>2018-09-15 12:45:41 -0700
committerArvid Norberg <arvid@blockstream.io>2018-09-15 12:45:41 -0700
commitbe54f42e5f309ff332d74828ae294636d77fb8ea (patch)
tree27c59e6e0d65436789d988dcf465e35cb376ec8f /src
parentc53e083a49291b611d278a8db24ff235c1202e43 (diff)
use integer division instead of double conversion and multiplication for computing amounts
Diffstat (limited to 'src')
-rw-r--r--src/validation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h
index 3df6456eca..1034ba4665 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -53,9 +53,9 @@ static const bool DEFAULT_WHITELISTFORCERELAY = 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;
+static const CAmount DEFAULT_TRANSACTION_MAXFEE = COIN / 10;
//! Discourage users to set fees higher than this amount (in satoshis) per kB
-static const CAmount HIGH_TX_FEE_PER_KB = 0.01 * COIN;
+static const CAmount HIGH_TX_FEE_PER_KB = COIN / 100;
//! -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 -limitancestorcount, max number of in-mempool ancestors */