mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 18:44:59 +01:00
test: add coverage for abandoning unconfirmed transaction
Co-authored-by: Eunovo <eunovo9@gmail.com>
This commit is contained in:
parent
e486597f9a
commit
073a017016
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue