|
|
@ -67,7 +67,7 @@ def connect_JSON(config): |
|
|
|
testnet = config.get('testnet', '0') |
|
|
|
testnet = (int(testnet) > 0) # 0/1 in config file, convert to True/False |
|
|
|
if not 'rpcport' in config: |
|
|
|
config['rpcport'] = 18232 if testnet else 8232 |
|
|
|
config['rpcport'] = 18822 if testnet else 8822 |
|
|
|
connect = "http://%s:%s@127.0.0.1:%s"%(config['rpcuser'], config['rpcpassword'], config['rpcport']) |
|
|
|
try: |
|
|
|
result = ServiceProxy(connect) |
|
|
|