From 4e1586acef71a993594cca713f67d878ea3cd3d2 Mon Sep 17 00:00:00 2001 From: Idealcoder <idealcoder@idealcoder.co.uk> Date: Wed, 17 Jun 2015 21:18:55 +0100 Subject: [PATCH] Changed zeroname_updater.py so that is starts be default on the first block with a namecoin domain Previously the default was null, causing the script to start from the latest block and so not scan any of the blocks that have happened before. 223911 is the first block with a namecoin domain, so there is no point starting before that. --- plugins/Zeroname/updater/zeroname_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Zeroname/updater/zeroname_updater.py b/plugins/Zeroname/updater/zeroname_updater.py index 26191a87..ace15f62 100644 --- a/plugins/Zeroname/updater/zeroname_updater.py +++ b/plugins/Zeroname/updater/zeroname_updater.py @@ -85,7 +85,7 @@ else: config_path = namecoin_location + 'zeroname_config.json' if not os.path.isfile(config_path): # Create sample config open(config_path, "w").write( - json.dumps({'site': 'site', 'zeronet_path': '/home/zeronet/', 'privatekey': '', 'lastprocessed': None}, indent=2) + json.dumps({'site': 'site', 'zeronet_path': '/home/zeronet/', 'privatekey': '', 'lastprocessed': 223911}, indent=2) ) print "Example config written to %s" % config_path sys.exit(0)