Procházet zdrojové kódy

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 před 9 roky
rodič
revize
4e1586acef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)