From f23beb879ef10d80f95080402faf0040eb0b84d1 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 29 Apr 2019 19:09:13 +0000 Subject: functional_tests: add missing sweep_dust parameters, and test it though not a very good test, but we don't have dust handy --- utils/python-rpc/framework/wallet.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'utils/python-rpc/framework/wallet.py') diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index 862ac2262..fae6082d7 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -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' } -- cgit v1.2.3