Browse Source

Litecoin: Relax minrelayfee to prepare for fee drop in next release

0.15
Adrian Gallagher 7 years ago
parent
commit
98d755d140
No known key found for this signature in database
GPG Key ID: FE3348877809386C
  1. 2
      src/validation.h
  2. 2
      test/functional/fundrawtransaction.py
  3. 2
      test/functional/mempool_limit.py

2
src/validation.h

@ -50,7 +50,7 @@ static const bool DEFAULT_WHITELISTRELAY = true; @@ -50,7 +50,7 @@ static const bool DEFAULT_WHITELISTRELAY = true;
/** Default for DEFAULT_WHITELISTFORCERELAY. */
static const bool DEFAULT_WHITELISTFORCERELAY = true;
/** Default for -minrelaytxfee, minimum relay fee for transactions */
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 100000;
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

2
test/functional/fundrawtransaction.py

@ -625,7 +625,7 @@ class RawTransactionsTest(BitcoinTestFramework): @@ -625,7 +625,7 @@ class RawTransactionsTest(BitcoinTestFramework):
inputs = []
outputs = {self.nodes[3].getnewaddress() : 1}
rawtx = self.nodes[3].createrawtransaction(inputs, outputs)
result = self.nodes[3].fundrawtransaction(rawtx) # uses min_relay_tx_fee (set by settxfee)
result = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 1*min_relay_tx_fee}) # uses min_relay_tx_fee (set by settxfee)
result2 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 2*min_relay_tx_fee})
result3 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 10*min_relay_tx_fee})
result_fee_rate = result['fee'] * 1000 / count_bytes(result['hex'])

2
test/functional/mempool_limit.py

@ -11,7 +11,7 @@ class MempoolLimitTest(BitcoinTestFramework): @@ -11,7 +11,7 @@ class MempoolLimitTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 1
self.extra_args = [["-maxmempool=5", "-spendzeroconfchange=0"]]
self.extra_args = [["-maxmempool=5", "-mintxfee=0.00001", "-spendzeroconfchange=0"]]
def run_test(self):
txouts = gen_return_txouts()

Loading…
Cancel
Save