mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +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
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
Add a link
Reference in a new issue