No "getinfo" in modern namecoind - try "getnetworkinfo"
This commit is contained in:
parent
4ba5702cc2
commit
8b932ade2d
|
@ -132,8 +132,10 @@ class namecoinConnection (object):
|
|||
def test(self):
|
||||
try:
|
||||
if self.nmctype == "namecoind":
|
||||
res = self.callRPC ("getinfo", [])
|
||||
vers = res["version"]
|
||||
try:
|
||||
vers = self.callRPC("getinfo", [])["version"]
|
||||
except RPCError:
|
||||
vers = self.callRPC("getnetworkinfo", [])["version"]
|
||||
|
||||
v3 = vers % 100
|
||||
vers = vers / 100
|
||||
|
|
Loading…
Reference in New Issue
Block a user