Use waitfornewblock if namecoin version 16.0 or higher

This commit is contained in:
rllola 2019-02-21 14:39:58 +01:00
parent 174e8d3c19
commit 93645681b0

View file

@ -216,7 +216,10 @@ while 1:
while 1:
try:
time.sleep(1)
rpc.waitforblock()
if node_version < 160000 :
rpc.waitforblock()
else:
rpc.waitfornewblock()
print "Found"
break # Block found
except socket.timeout: # Timeout