Make zeroname_udpater work
This commit is contained in:
parent
ba23dd5132
commit
bef4596afa
2 changed files with 19 additions and 13 deletions
|
@ -29,7 +29,7 @@ def initRpc(config):
|
|||
|
||||
url = 'http://%(user)s:%(password)s@%(connect)s:%(port)s' % rpc_data
|
||||
|
||||
return AuthServiceProxy(url, timeout=int(rpc_data['clienttimeout']))
|
||||
return url, timeout=int(rpc_data['clienttimeout'])
|
||||
|
||||
# Either returns domain's address or none if it doesn't exist
|
||||
# Supports subdomains and .bit on the end
|
||||
|
@ -74,4 +74,5 @@ else:
|
|||
namecoin_location = os.path.expanduser("~/.namecoin/")
|
||||
|
||||
# Initialize rpc connection
|
||||
rpc = initRpc(namecoin_location + "namecoin.conf")
|
||||
rpc_auth, rpc_timeout = initRpc(namecoin_location + "namecoin.conf")
|
||||
rpc = AuthServiceProxy(rpc_auth, timeout=rpc_timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue