reindex, not index

This commit is contained in:
Jude Nelson
2018-02-12 19:02:33 -05:00
parent 0904e6f89c
commit f2e9660bd4

View File

@@ -2036,7 +2036,7 @@ def index_blockchain(server_state, expected_snapshots=GENESIS_SNAPSHOT):
if subdomain_last_block < SUBDOMAINS_FIRST_BLOCK and start_block >= SUBDOMAINS_FIRST_BLOCK:
# initialize subdomains db
log.debug("Creating subdomain DB {}".format(blockstack_opts['subdomaindb_path']))
server_state['subdomains'].index(SUBDOMAINS_FIRST_BLOCK, current_block)
server_state['subdomains'].reindex(current_block)
# bring the db up to the chain tip.
# NOTE: at each block, the atlas db will be synchronized by virtualchain_hooks