rpc, wallet: add abandoned field for all categories of transactions in ListTransactions

This commit is contained in:
brunoerg
2022-05-16 17:58:19 -03:00
parent 296e882250
commit a1aaa7f51f
2 changed files with 9 additions and 6 deletions

View File

@@ -539,6 +539,11 @@ def test_unconfirmed_not_spendable(self, rbf_node, rbf_node_address):
# Call abandon to make sure the wallet doesn't attempt to resubmit
# the bump tx and hope the wallet does not rebroadcast before we call.
rbf_node.abandontransaction(bumpid)
tx_bump_abandoned = rbf_node.gettransaction(bumpid)
for tx in tx_bump_abandoned['details']:
assert_equal(tx['abandoned'], True)
assert bumpid not in rbf_node.getrawmempool()
assert rbfid in rbf_node.getrawmempool()