From 83cc802dca5979620824abcf2633b108fb4d1cc1 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 27 Oct 2024 05:07:14 +0400 Subject: [PATCH] Fix mempool_limit.py --- test/functional/mempool_limit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/functional/mempool_limit.py b/test/functional/mempool_limit.py index 10e29054ec..c8e8818e14 100755 --- a/test/functional/mempool_limit.py +++ b/test/functional/mempool_limit.py @@ -103,7 +103,7 @@ def test_rbf_carveout_disallowed(self): mempoolmin_feerate = node.getmempoolinfo()["mempoolminfee"] tx_A = self.wallet.send_self_transfer( from_node=node, - fee=(mempoolmin_feerate / 1000) * (A_weight // 4) + Decimal('0.000001'), + fee=(mempoolmin_feerate / 1000) * (A_weight // 4) + Decimal('0.001000'), target_weight=A_weight, utxo_to_spend=rbf_utxo, confirmed_only=True @@ -121,7 +121,7 @@ def test_rbf_carveout_disallowed(self): non_cpfp_carveout_weight = 40001 # EXTRA_DESCENDANT_TX_SIZE_LIMIT + 1 tx_C = self.wallet.create_self_transfer( target_weight=non_cpfp_carveout_weight, - fee = (mempoolmin_feerate / 1000) * (non_cpfp_carveout_weight // 4) + Decimal('0.000001'), + fee = (mempoolmin_feerate / 1000) * (non_cpfp_carveout_weight // 4) + Decimal('0.001000'), utxo_to_spend=tx_B["new_utxo"], confirmed_only=True ) @@ -153,7 +153,7 @@ def test_mid_package_eviction(self): # happen in the middle of package evaluation, as it can invalidate the coins cache. mempool_evicted_tx = self.wallet.send_self_transfer( from_node=node, - fee=(mempoolmin_feerate / 1000) * (evicted_weight // 4) + Decimal('0.000001'), + fee=(mempoolmin_feerate / 1000) * (evicted_weight // 4) + Decimal('0.00100'), target_weight=evicted_weight, confirmed_only=True ) @@ -179,7 +179,7 @@ def test_mid_package_eviction(self): parent_weight = 100000 num_big_parents = 3 assert_greater_than(parent_weight * num_big_parents, current_info["maxmempool"] - current_info["bytes"]) - parent_fee = (100 * mempoolmin_feerate / 1000) * (parent_weight // 4) + parent_fee = (30 * mempoolmin_feerate / 1000) * (parent_weight // 4) big_parent_txids = [] for i in range(num_big_parents): @@ -320,7 +320,7 @@ def run_test(self): node.prioritisetransaction(tx_rich["txid"], 0, int(DEFAULT_FEE * COIN)) package_txns = [tx_rich, tx_poor] coins = [tx["new_utxo"] for tx in package_txns] - tx_child = miniwallet.create_self_transfer_multi(utxos_to_spend=coins, fee_per_output=10000) #DEFAULT_FEE + tx_child = miniwallet.create_self_transfer_multi(utxos_to_spend=coins, fee_per_output=5000000) #DEFAULT_FEE package_txns.append(tx_child) submitpackage_result = node.submitpackage([tx["hex"] for tx in package_txns])