aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_listtransactions.py
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2021-10-11 17:50:02 -0300
committerbrunoerg <brunoely.gc@gmail.com>2021-10-12 12:10:48 -0300
commitb7884dd1b68814c59ff4fb5f7a199e306b015e85 (patch)
tree1b8d32961cf2bb4d6bc573b423740bc72c0f9423 /test/functional/wallet_listtransactions.py
parent8e9801bfc4ac4fa33fd5fe802e43ede36d7b323b (diff)
downloadbitcoin-b7884dd1b68814c59ff4fb5f7a199e306b015e85.tar.xz
test: bip125-replaceable in listsinceblock
Diffstat (limited to 'test/functional/wallet_listtransactions.py')
-rwxr-xr-xtest/functional/wallet_listtransactions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/wallet_listtransactions.py b/test/functional/wallet_listtransactions.py
index a14bfe345c..bfcfdf7c2e 100755
--- a/test/functional/wallet_listtransactions.py
+++ b/test/functional/wallet_listtransactions.py
@@ -204,6 +204,15 @@ class ListTransactionsTest(BitcoinTestFramework):
assert_equal(n.gettransaction(txid_3b)["bip125-replaceable"], "yes")
assert_equal(n.gettransaction(txid_4)["bip125-replaceable"], "unknown")
+ self.log.info("Test bip125-replaceable status with listsinceblock")
+ for n in self.nodes[0:2]:
+ txs = {tx['txid']: tx['bip125-replaceable'] for tx in n.listsinceblock()['transactions']}
+ assert_equal(txs[txid_1], "no")
+ assert_equal(txs[txid_2], "no")
+ assert_equal(txs[txid_3], "yes")
+ assert_equal(txs[txid_3b], "yes")
+ assert_equal(txs[txid_4], "unknown")
+
self.log.info("Test mined transactions are no longer bip125-replaceable")
self.generate(self.nodes[0], 1)
assert txid_3b not in self.nodes[0].getrawmempool()