diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:51:24 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:51:25 -0800 |
commit | beb815a81defc441138bb6929c3b525e008fe734 (patch) | |
tree | fb289c81a7be0fc91023d12a9c1531981dcc9626 /utils | |
parent | Merge pull request #6143 (diff) | |
parent | wallet_rpc_server: add count parameter to create_address (diff) | |
download | monero-beb815a81defc441138bb6929c3b525e008fe734.tar.xz |
Merge pull request #6144
0e0351c4 wallet_rpc_server: add count parameter to create_address (Matt Smith)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index 37a7f8975..703261a4e 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -237,14 +237,15 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(create_account) - def create_address(self, account_index = 0, label = ""): + def create_address(self, account_index = 0, label = "", count = 1): create_address = { 'method': 'create_address', 'params' : { 'account_index': account_index, - 'label': label + 'label': label, + 'count': count }, - 'jsonrpc': '2.0', + 'jsonrpc': '2.0', 'id': '0' } return self.rpc.send_json_rpc_request(create_address) |