From 687b06fe1954dbc78893ee22adb609fbe502fe39 Mon Sep 17 00:00:00 2001 From: Idealcoder Date: Thu, 18 Jun 2015 19:52:15 +0100 Subject: [PATCH] Zeroname-local - removed commented out code Tidying up --- .../disabled-Zeroname-local/domainLookup.py | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/plugins/disabled-Zeroname-local/domainLookup.py b/plugins/disabled-Zeroname-local/domainLookup.py index 0e9cb778..013a2d24 100644 --- a/plugins/disabled-Zeroname-local/domainLookup.py +++ b/plugins/disabled-Zeroname-local/domainLookup.py @@ -54,30 +54,3 @@ rpc_pass = re.search("rpcpassword=(.*)$", namecoin_conf, re.M).group(1) rpc_url = "http://%s:%s@127.0.0.1:8336" % (rpc_user, rpc_pass) rpc = AuthServiceProxy(rpc_url, timeout=60*5) - -""" -while 1: - print "Waiting for new block", - sys.stdout.flush() - while 1: - try: - rpc = AuthServiceProxy(rpc_url, timeout=60*5) - if (int(rpc.getinfo()["blocks"]) > last_block): break - time.sleep(1) - rpc.waitforblock() - print "Found" - break # Block found - except socket.timeout: # Timeout - print ".", - sys.stdout.flush() - except Exception, err: - print "Exception", err.__class__, err - time.sleep(5) - - last_block = int(rpc.getinfo()["blocks"]) - for block_id in range(config["lastprocessed"]+1, last_block+1): - processBlock(block_id) - - config["lastprocessed"] = last_block - open(config_path, "w").write(json.dumps(config, indent=2)) -""" \ No newline at end of file