diff options
| author | Michi Lumin <[email protected]> | 2021-08-08 18:49:12 +0100 |
|---|---|---|
| committer | michilumin <[email protected]> | 2021-08-11 14:16:01 -0600 |
| commit | f8813f8e134ef1994b595e06ee163b03f465d3c1 (patch) | |
| tree | b9cf43b5a31caf338fe736c0642581a761d43869 /qa/rpc-tests | |
| parent | Merge pull request #2439 from rnicoll/1.14.4-dust-limit-type-alt (diff) | |
| download | discoin-f8813f8e134ef1994b595e06ee163b03f465d3c1.tar.xz discoin-f8813f8e134ef1994b595e06ee163b03f465d3c1.zip | |
fees: Reduce minimum relay fee to 0.001 DOGE, final change from tx to 0.01
Diffstat (limited to 'qa/rpc-tests')
| -rwxr-xr-x | qa/rpc-tests/bumpfee.py | 2 | ||||
| -rwxr-xr-x | qa/rpc-tests/fundrawtransaction.py | 6 | ||||
| -rw-r--r-- | qa/rpc-tests/harddustlimit.py | 2 | ||||
| -rwxr-xr-x | qa/rpc-tests/mempool_limit.py | 3 | ||||
| -rwxr-xr-x | qa/rpc-tests/prioritise_transaction.py | 2 |
5 files changed, 9 insertions, 6 deletions
diff --git a/qa/rpc-tests/bumpfee.py b/qa/rpc-tests/bumpfee.py index e8deb3adf..b23761b06 100755 --- a/qa/rpc-tests/bumpfee.py +++ b/qa/rpc-tests/bumpfee.py @@ -58,6 +58,7 @@ class BumpFeeTest(BitcoinTestFramework): print("Running tests") dest_address = peer_node.getnewaddress() + test_bumpfee_metadata(rbf_node, dest_address) test_small_output_fails(rbf_node, dest_address) test_dust_to_fee(rbf_node, dest_address) test_simple_bumpfee_succeeds(rbf_node, peer_node, dest_address) @@ -69,7 +70,6 @@ class BumpFeeTest(BitcoinTestFramework): test_rebumping(rbf_node, dest_address) test_rebumping_not_replaceable(rbf_node, dest_address) test_unconfirmed_not_spendable(rbf_node, rbf_node_address) - test_bumpfee_metadata(rbf_node, dest_address) test_locked_wallet_fails(rbf_node, dest_address) print("Success") diff --git a/qa/rpc-tests/fundrawtransaction.py b/qa/rpc-tests/fundrawtransaction.py index 9660a7a42..7274e9c41 100755 --- a/qa/rpc-tests/fundrawtransaction.py +++ b/qa/rpc-tests/fundrawtransaction.py @@ -639,8 +639,10 @@ class RawTransactionsTest(BitcoinTestFramework): 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) - result2 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 2*min_relay_tx_fee}) - result3 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 10*min_relay_tx_fee}) + # TODO: We massively scale up min_relay_tx_fee here as it's not the recommended fee in 1.14.4, + # but must be scaled back for 1.14.5 + result2 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 2000*min_relay_tx_fee}) + result3 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 10000*min_relay_tx_fee}) result_fee_rate = result['fee'] * 1000 / round_tx_size(count_bytes(result['hex'])) assert_fee_amount(result2['fee'], count_bytes(result2['hex']), 2 * result_fee_rate) assert_fee_amount(result3['fee'], count_bytes(result3['hex']), 10 * result_fee_rate) diff --git a/qa/rpc-tests/harddustlimit.py b/qa/rpc-tests/harddustlimit.py index 9d56febb7..d7b46fd94 100644 --- a/qa/rpc-tests/harddustlimit.py +++ b/qa/rpc-tests/harddustlimit.py @@ -33,7 +33,7 @@ class HardDustLimitTest(BitcoinTestFramework): def run_test(self): - self.fee = Decimal("1") + self.fee = Decimal("0.001") self.seed = 1000 self.coinselector = {'minimumAmount': self.fee * 10, 'maximumAmount': self.seed} diff --git a/qa/rpc-tests/mempool_limit.py b/qa/rpc-tests/mempool_limit.py index f7b4259a6..a7768086d 100755 --- a/qa/rpc-tests/mempool_limit.py +++ b/qa/rpc-tests/mempool_limit.py @@ -40,7 +40,8 @@ class MempoolLimitTest(BitcoinTestFramework): txid = self.nodes[0].sendrawtransaction(txFS['hex']) relayfee = self.nodes[0].getnetworkinfo()['relayfee'] - base_fee = relayfee*100 + # TODO: Remove "* 1000" in 1.14.5 when relayfee and minimum fee are close to each other again. + base_fee = relayfee*100 * 1000 for i in range (6): txids.append([]) txids[i] = create_lots_of_big_transactions(self.nodes[0], self.txouts, utxos[30*i:30*i+30], 30, (i+1)*base_fee) diff --git a/qa/rpc-tests/prioritise_transaction.py b/qa/rpc-tests/prioritise_transaction.py index 16874a6b5..0688eae61 100755 --- a/qa/rpc-tests/prioritise_transaction.py +++ b/qa/rpc-tests/prioritise_transaction.py @@ -33,7 +33,7 @@ class PrioritiseTransactionTest(BitcoinTestFramework): def run_test(self): utxo_count = 90 utxos = create_confirmed_utxos(self.relayfee, self.nodes[0], utxo_count) - base_fee = self.relayfee*100 # our transactions are smaller than 100kb + base_fee = self.relayfee*100 * 1000 # our transactions are smaller than 100kb txids = [] # Create 3 batches of transactions at 3 different fee rate levels |