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.
This commit is contained in:
Idealcoder 2015-06-17 21:18:55 +01:00
parent 0fa87523fd
commit 4e1586acef
1 changed files with 1 additions and 1 deletions

View File

@ -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)