Skip to content

Commit

Permalink
test: Don't rely on incentive incompatible replacement in mempool_acc…
Browse files Browse the repository at this point in the history
…ept_v3.py
  • Loading branch information
sdaftuar committed Apr 29, 2024
1 parent 2a07c46 commit f8a141c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/mempool_accept_v3.py
Expand Up @@ -533,10 +533,10 @@ def test_v3_sibling_eviction(self):
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"]])
Expand Down

0 comments on commit f8a141c

Please sign in to comment.