big refactoring of the interface
[electrum-nvc.git] / scripts / blocks
index 67db84a..16aa5e7 100755 (executable)
@@ -8,7 +8,7 @@ i.send([('blockchain.numblocks.subscribe',[])])
 
 while True:
     try:
-        r = i.responses.get(True, 100000000000)
+        r = i.get_response()
     except KeyboardInterrupt:
         break
     if r.get('method') == 'blockchain.numblocks.subscribe':