mirror of
https://github.com/monero-project/monero.git
synced 2025-08-05 10:34:31 -04:00
functional_tests: add missing sweep_dust parameters, and test it
though not a very good test, but we don't have dust handy
This commit is contained in:
parent
b9e09378ad
commit
f23beb879e
2 changed files with 15 additions and 1 deletions
|
@ -45,6 +45,7 @@ class TransferTest():
|
|||
self.transfer()
|
||||
self.check_get_bulk_payments()
|
||||
self.check_double_spend_detection()
|
||||
self.sweep_dust()
|
||||
self.sweep_single()
|
||||
self.check_destinations()
|
||||
|
||||
|
@ -583,6 +584,13 @@ class TransferTest():
|
|||
assert tx.in_pool
|
||||
assert tx.double_spend_seen
|
||||
|
||||
def sweep_dust(self):
|
||||
print("Sweeping dust")
|
||||
daemon = Daemon()
|
||||
self.wallet[0].refresh()
|
||||
res = self.wallet[0].sweep_dust()
|
||||
assert not 'tx_hash_list' in res or len(res.tx_hash_list) == 0 # there's just one, but it cannot meet the fee
|
||||
|
||||
def sweep_single(self):
|
||||
daemon = Daemon()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue