Skip to content

Commit be54f42

Browse files
author
Arvid Norberg
committed
use integer division instead of double conversion and multiplication for computing amounts
1 parent c53e083 commit be54f42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ static const bool DEFAULT_WHITELISTFORCERELAY = true;
5353
/** Default for -minrelaytxfee, minimum relay fee for transactions */
5454
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
5555
//! -maxtxfee default
56-
static const CAmount DEFAULT_TRANSACTION_MAXFEE = 0.1 * COIN;
56+
static const CAmount DEFAULT_TRANSACTION_MAXFEE = COIN / 10;
5757
//! Discourage users to set fees higher than this amount (in satoshis) per kB
58-
static const CAmount HIGH_TX_FEE_PER_KB = 0.01 * COIN;
58+
static const CAmount HIGH_TX_FEE_PER_KB = COIN / 100;
5959
//! -maxtxfee will warn if called with a higher fee than this amount (in satoshis)
6060
static const CAmount HIGH_MAX_TX_FEE = 100 * HIGH_TX_FEE_PER_KB;
6161
/** Default for -limitancestorcount, max number of in-mempool ancestors */

0 commit comments

Comments
 (0)