Change default ports

This commit is contained in:
Jack Grigg
2016-06-16 14:14:27 +12:00
parent fe97a405e3
commit 3985a40d1f
21 changed files with 41 additions and 41 deletions

View File

@@ -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'] = 18332 if testnet else 8332
config['rpcport'] = 18232 if testnet else 8232
connect = "http://%s:%s@127.0.0.1:%s"%(config['rpcuser'], config['rpcpassword'], config['rpcport'])
try:
result = ServiceProxy(connect)