Skip to content

Commit b7884dd

Browse files
committed
test: bip125-replaceable in listsinceblock
1 parent 8e9801b commit b7884dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/functional/wallet_listtransactions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,15 @@ def get_unconfirmed_utxo_entry(node, txid_to_match):
204204
assert_equal(n.gettransaction(txid_3b)["bip125-replaceable"], "yes")
205205
assert_equal(n.gettransaction(txid_4)["bip125-replaceable"], "unknown")
206206

207+
self.log.info("Test bip125-replaceable status with listsinceblock")
208+
for n in self.nodes[0:2]:
209+
txs = {tx['txid']: tx['bip125-replaceable'] for tx in n.listsinceblock()['transactions']}
210+
assert_equal(txs[txid_1], "no")
211+
assert_equal(txs[txid_2], "no")
212+
assert_equal(txs[txid_3], "yes")
213+
assert_equal(txs[txid_3b], "yes")
214+
assert_equal(txs[txid_4], "unknown")
215+
207216
self.log.info("Test mined transactions are no longer bip125-replaceable")
208217
self.generate(self.nodes[0], 1)
209218
assert txid_3b not in self.nodes[0].getrawmempool()

0 commit comments

Comments
 (0)