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:
moneromooo-monero 2019-04-29 19:09:13 +00:00
parent b9e09378ad
commit f23beb879e
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 15 additions and 1 deletions

View file

@ -142,9 +142,15 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(get_balance)
def sweep_dust(self):
def sweep_dust(self, get_tx_keys = True, do_not_relay = False, get_tx_hex = False, get_tx_metadata = False):
sweep_dust = {
'method': 'sweep_dust',
'params': {
'get_tx_keys': get_tx_keys,
'do_not_relay': do_not_relay,
'get_tx_hex': get_tx_hex,
'get_tx_metadata': get_tx_metadata,
},
'jsonrpc': '2.0',
'id': '0'
}