Use waitfornewblock if namecoin version 16.0 or higher
This commit is contained in:
parent
174e8d3c19
commit
93645681b0
1 changed files with 4 additions and 1 deletions
|
@ -216,7 +216,10 @@ while 1:
|
||||||
while 1:
|
while 1:
|
||||||
try:
|
try:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
rpc.waitforblock()
|
if node_version < 160000 :
|
||||||
|
rpc.waitforblock()
|
||||||
|
else:
|
||||||
|
rpc.waitfornewblock()
|
||||||
print "Found"
|
print "Found"
|
||||||
break # Block found
|
break # Block found
|
||||||
except socket.timeout: # Timeout
|
except socket.timeout: # Timeout
|
||||||
|
|
Loading…
Reference in a new issue