Преглед изворни кода

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.
Idealcoder пре 9 година
родитељ
комит
4e1586acef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/Zeroname/updater/zeroname_updater.py

+ 1 - 1
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)