mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-07 11:39:01 +02:00
test: add coverage for abandoning unconfirmed transaction
Co-authored-by: Eunovo <eunovo9@gmail.com>
This commit is contained in:
parent
e486597f9a
commit
073a017016
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user