diff options
author | brunoerg <brunoely.gc@gmail.com> | 2021-10-11 17:50:02 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2021-10-12 12:10:48 -0300 |
commit | b7884dd1b68814c59ff4fb5f7a199e306b015e85 (patch) | |
tree | 1b8d32961cf2bb4d6bc573b423740bc72c0f9423 /test | |
parent | 8e9801bfc4ac4fa33fd5fe802e43ede36d7b323b (diff) | |
download | bitcoin-b7884dd1b68814c59ff4fb5f7a199e306b015e85.tar.xz |
test: bip125-replaceable in listsinceblock
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet_listtransactions.py | 9 |
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() |