Skip to content

Commit 870bd4c

Browse files
committed
Update functional RBF test to check replaceable flag
1 parent 820d31f commit 870bd4c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/functional/feature_rbf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ def test_opt_in(self):
427427
tx1a_hex = txToHex(tx1a)
428428
tx1a_txid = self.nodes[0].sendrawtransaction(tx1a_hex, True)
429429

430+
# This transaction isn't shown as replaceable
431+
assert_equal(self.nodes[0].getmempoolentry(tx1a_txid)['bip125-replaceable'], False)
432+
430433
# Shouldn't be able to double-spend
431434
tx1b = CTransaction()
432435
tx1b.vin = [CTxIn(tx0_outpoint, nSequence=0)]
@@ -467,7 +470,10 @@ def test_opt_in(self):
467470
tx3a.vout = [CTxOut(int(0.9*COIN), CScript([b'c'])), CTxOut(int(0.9*COIN), CScript([b'd']))]
468471
tx3a_hex = txToHex(tx3a)
469472

470-
self.nodes[0].sendrawtransaction(tx3a_hex, True)
473+
tx3a_txid = self.nodes[0].sendrawtransaction(tx3a_hex, True)
474+
475+
# This transaction is shown as replaceable
476+
assert_equal(self.nodes[0].getmempoolentry(tx3a_txid)['bip125-replaceable'], True)
471477

472478
tx3b = CTransaction()
473479
tx3b.vin = [CTxIn(COutPoint(tx1a_txid, 0), nSequence=0)]

0 commit comments

Comments
 (0)