Browse Source

Use waitfornewblock if namecoin version 16.0 or higher

rllola 5 years ago
parent
commit
93645681b0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      plugins/Zeroname/updater/zeroname_updater.py

+ 4 - 1
plugins/Zeroname/updater/zeroname_updater.py

@@ -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