Skip to content

Commit 073a017

Browse files
rkruxEunovo
andcommitted
test: add coverage for abandoning unconfirmed transaction
Co-authored-by: Eunovo <eunovo9@gmail.com>
1 parent e486597 commit 073a017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_abandonconflict.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def run_test(self):
4545
txB = alice.sendtoaddress(alice.getnewaddress(), Decimal("10"))
4646
txC = alice.sendtoaddress(alice.getnewaddress(), Decimal("10"))
4747
self.sync_mempools()
48+
49+
# Can not abandon transaction in mempool
50+
assert_raises_rpc_error(-5, 'Transaction not eligible for abandonment', lambda: alice.abandontransaction(txid=txA))
51+
4852
self.generate(self.nodes[1], 1)
4953

5054
# Can not abandon non-wallet transaction

0 commit comments

Comments
 (0)