diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-25 20:49:09 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 11:08:17 +0000 |
commit | 798e3cad2ba923d61cbce95784ee7990bf20b3a0 (patch) | |
tree | fe50231b33d66010e413f126b6ef6819bbafc8a8 /utils/python-rpc | |
parent | functional_tests: add alt chains tests (diff) | |
download | monero-798e3cad2ba923d61cbce95784ee7990bf20b3a0.tar.xz |
functional_tests: add double spend detection tests
Diffstat (limited to 'utils/python-rpc')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index bcf908291..068c87493 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -159,11 +159,23 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(sweep_dust) - def sweep_all(self, address): + def sweep_all(self, address = '', account_index = 0, subaddr_indices = [], priority = 0, ring_size = 0, outputs = 1, unlock_time = 0, payment_id = '', get_tx_keys = False, below_amount = 0, do_not_relay = False, get_tx_hex = False, get_tx_metadata = False): sweep_all = { 'method': 'sweep_all', 'params' : { - 'address' : '' + 'address' : address, + 'account_index' : account_index, + 'subaddr_indices' : subaddr_indices, + 'priority' : priority, + 'ring_size' : ring_size, + 'outputs' : outputs, + 'unlock_time' : unlock_time, + 'payment_id' : payment_id, + 'get_tx_keys' : get_tx_keys, + 'below_amount' : below_amount, + 'do_not_relay' : do_not_relay, + 'get_tx_hex' : get_tx_hex, + 'get_tx_metadata' : get_tx_metadata, }, 'jsonrpc': '2.0', 'id': '0' |