Skip to content

Commit fa2e9de

Browse files
author
MarcoFalke
committed
test: Check that non-signaling BIP125 tx can be replaced via parent
1 parent 7be143a commit fa2e9de

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/functional/feature_rbf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,17 @@ def test_no_inherited_signaling(self):
618618
assert_equal(True, self.nodes[0].getmempoolentry(optin_parent_tx['txid'])['bip125-replaceable'])
619619
assert_raises_rpc_error(-26, 'txn-mempool-conflict', self.nodes[0].sendrawtransaction, replacement_child_tx["hex"], 0)
620620

621+
self.log.info('Check that the child tx can still be replaced (via a tx that also replaces the parent)')
622+
replacement_parent_tx = self.wallet.send_self_transfer(
623+
from_node=self.nodes[0],
624+
utxo_to_spend=confirmed_utxo,
625+
sequence=0xffffffff,
626+
fee_rate=Decimal('0.03'),
627+
)
628+
# Check that child is removed and update wallet utxo state
629+
assert_raises_rpc_error(-5, 'Transaction not in mempool', self.nodes[0].getmempoolentry, optout_child_tx['txid'])
630+
self.wallet.get_utxo(txid=optout_child_tx['txid'])
631+
621632
def test_replacement_relay_fee(self):
622633
tx = self.wallet.send_self_transfer(from_node=self.nodes[0])['tx']
623634

0 commit comments

Comments
 (0)