Skip to content

Commit 6876e50

Browse files
committed
Merge bitcoin#31943: test: add coverage for abandoning unconfirmed transaction
073a017 test: add coverage for abandoning unconfirmed transaction (rkrux) Pull request description: Previous discussion: bitcoin#31794 (review) Current Coverage: https://maflcko.github.io/b-c-cov/total.coverage/src/wallet/wallet.cpp.gcov.html#L1326 ACKs for top commit: Eunovo: Tested ACK bitcoin@073a017 janb84: Tested ACK [073a017](bitcoin@073a017) maflcko: lgtm ACK 073a017 Prabhat1308: Concept ACK [`073a017`](bitcoin@073a017) brunoerg: utACK 073a017 Tree-SHA512: be9b3d2e1cf65b20369be44d333aa2244b3af588f4a90374ad9562c3ea336669ba8f98a5fb88d616ba1f1f1b7dc0ad9bb47e7167aa03a52f2e0601525e156345
2 parents 0bb8a01 + 073a017 commit 6876e50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_abandonconflict.py

+4
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)