Skip to content

Commit

Permalink
Fix mempool_limit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 27, 2024
1 parent d5cf014 commit 83cc802
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/mempool_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand Down Expand Up @@ -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
)
Expand All @@ -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):
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 83cc802

Please sign in to comment.