From 047af5c3430c90f93b7d00bcd86b189115b7f685 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 6 Apr 2019 11:34:59 +0000 Subject: console.py: can now connect to several daemons/wallets Also throw exceptions instead of print+exit, since that makes the error print last, below the python stack trace, where it's much less easy to miss it. --- utils/python-rpc/framework/wallet.py | 2 ++ 1 file changed, 2 insertions(+) (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 fd104da5f..a80aaefec 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -33,6 +33,8 @@ from .rpc import JSONRPC class Wallet(object): def __init__(self, protocol='http', host='127.0.0.1', port=0, idx=0): + self.host = host + self.port = port self.rpc = JSONRPC('{protocol}://{host}:{port}'.format(protocol=protocol, host=host, port=port if port else 18090+idx)) def make_uniform_destinations(self, address, transfer_amount, transfer_number_of_destinations=1): -- cgit v1.2.3