Skip to content

Commit

Permalink
Use sibling eviction as a replacement cycling vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ariard committed Feb 26, 2024
1 parent 77b0b8c commit 04fdc0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/functional/mempool_accept_v3.py
Expand Up @@ -516,6 +516,13 @@ def test_v3_sibling_eviction(self):
node.sendrawtransaction(tx_v3_child_3["hex"])
self.check_mempool(txids_v2_100 + [tx_v3_parent["txid"], tx_v3_child_3["txid"]])

tx_replace_child_3 = self.wallet.create_self_transfer_multi(
utxos_to_spend=[utxo_unrelated_conflict], fee_per_output=fee_to_beat_child2*10, version=3
)
node.sendrawtransaction(tx_replace_child_3["hex"])
self.check_mempool(txids_v2_100 + [tx_v3_parent["txid"], tx_replace_child_3["txid"]])
assert not tx_v3_child_3["txid"] in node.getrawmempool()

@cleanup(extra_args=["-acceptnonstdtxn=1"])
def test_reorg_sibling_eviction_1p2c(self):
node = self.nodes[0]
Expand Down

0 comments on commit 04fdc0a

Please sign in to comment.