diff --git a/test/functional/wallet_abandonconflict.py b/test/functional/wallet_abandonconflict.py index ce0f4d099b5..2bbfaee3db1 100755 --- a/test/functional/wallet_abandonconflict.py +++ b/test/functional/wallet_abandonconflict.py @@ -45,6 +45,10 @@ class AbandonConflictTest(BitcoinTestFramework): txB = alice.sendtoaddress(alice.getnewaddress(), Decimal("10")) txC = alice.sendtoaddress(alice.getnewaddress(), Decimal("10")) self.sync_mempools() + + # Can not abandon transaction in mempool + assert_raises_rpc_error(-5, 'Transaction not eligible for abandonment', lambda: alice.abandontransaction(txid=txA)) + self.generate(self.nodes[1], 1) # Can not abandon non-wallet transaction