aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_accept_v3.py
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@chaincode.com>2024-04-28 08:42:28 -0400
committerSuhas Daftuar <sdaftuar@chaincode.com>2024-04-29 12:15:30 -0400
commitf8a141c2dae2471a7ce7248e28a0bbeb8a291acd (patch)
treeb369158d26e237306a725a4e94fbeb1e5b4f3135 /test/functional/mempool_accept_v3.py
parent2a07c4662d7266158d47f79fa2433ab22e22c907 (diff)
downloadbitcoin-f8a141c2dae2471a7ce7248e28a0bbeb8a291acd.tar.xz
test: Don't rely on incentive incompatible replacement in mempool_accept_v3.py
Diffstat (limited to 'test/functional/mempool_accept_v3.py')
-rwxr-xr-xtest/functional/mempool_accept_v3.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/mempool_accept_v3.py b/test/functional/mempool_accept_v3.py
index 1b55cd0a0d..8285b82c19 100755
--- a/test/functional/mempool_accept_v3.py
+++ b/test/functional/mempool_accept_v3.py
@@ -533,10 +533,10 @@ class MempoolAcceptV3(BitcoinTestFramework):
tx_unrelated_replacee = self.wallet.send_self_transfer(from_node=node, utxo_to_spend=utxo_unrelated_conflict)
assert tx_unrelated_replacee["txid"] in node.getrawmempool()
- fee_to_beat_child2 = int(tx_v3_child_2["fee"] * COIN)
+ fee_to_beat = max(int(tx_v3_child_2["fee"] * COIN), int(tx_unrelated_replacee["fee"]*COIN))
tx_v3_child_3 = self.wallet.create_self_transfer_multi(
- utxos_to_spend=[tx_v3_parent["new_utxos"][0], utxo_unrelated_conflict], fee_per_output=fee_to_beat_child2*5, version=3
+ utxos_to_spend=[tx_v3_parent["new_utxos"][0], utxo_unrelated_conflict], fee_per_output=fee_to_beat*2, version=3
)
node.sendrawtransaction(tx_v3_child_3["hex"])
self.check_mempool(txids_v2_100 + [tx_v3_parent["txid"], tx_v3_child_3["txid"]])