mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 19:50:43 +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"))
|
txB = alice.sendtoaddress(alice.getnewaddress(), Decimal("10"))
|
||||||
txC = alice.sendtoaddress(alice.getnewaddress(), Decimal("10"))
|
txC = alice.sendtoaddress(alice.getnewaddress(), Decimal("10"))
|
||||||
self.sync_mempools()
|
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)
|
self.generate(self.nodes[1], 1)
|
||||||
|
|
||||||
# Can not abandon non-wallet transaction
|
# Can not abandon non-wallet transaction
|
||||||
|
Loading…
Reference in New Issue
Block a user