aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2021-09-23 11:30:53 -0300
committerbrunoerg <brunoely.gc@gmail.com>2021-10-01 09:51:14 -0300
commitbda620aecd690004c52e550ad7de187ce0eb655d (patch)
tree562f9a5d5f6d6e1119bdb7083b9adc44cbbe9acb /test
parent6ef84e0503994c53f77093e7ea5951a7b0edea7a (diff)
downloadbitcoin-bda620aecd690004c52e550ad7de187ce0eb655d.tar.xz
test: check abandoned tx in listsinceblock
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_abandonconflict.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/wallet_abandonconflict.py b/test/functional/wallet_abandonconflict.py
index 6365840041..bb36ad5697 100755
--- a/test/functional/wallet_abandonconflict.py
+++ b/test/functional/wallet_abandonconflict.py
@@ -120,6 +120,14 @@ class AbandonConflictTest(BitcoinTestFramework):
assert_equal(newbalance, balance + Decimal("30"))
balance = newbalance
+ self.log.info("Check abandoned transactions in listsinceblock")
+ listsinceblock = self.nodes[0].listsinceblock()
+ txAB1_listsinceblock = [d for d in listsinceblock['transactions'] if d['txid'] == txAB1 and d['category'] == 'send']
+ for tx in txAB1_listsinceblock:
+ assert_equal(tx['abandoned'], True)
+ assert_equal(tx['confirmations'], 0)
+ assert_equal(tx['trusted'], False)
+
# Verify that even with a low min relay fee, the tx is not reaccepted from wallet on startup once abandoned
self.restart_node(0, extra_args=["-minrelaytxfee=0.00001"])
assert self.nodes[0].getmempoolinfo()['loaded']