support for greedily filling the subdomain cache by querying blockstack core for new zonefiles

This commit is contained in:
Aaron Blankstein
2017-08-08 15:00:52 -04:00
parent dfe9aecf2c
commit e0cb5f04f6
8 changed files with 129 additions and 59 deletions

View File

@@ -284,7 +284,7 @@ def store_zonefile_data_to_storage( zonefile_text, txid, required=None, skip=Non
log.debug("Failed to cache zonefile %s" % zonefile_hash)
# NOTE: this can fail if one of the required drivers needs a non-null txid
res = blockstack_client.storage.put_immutable_data( zonefile_text, txid, data_hash=zonefile_hash, required=required, skip=skip )
res = blockstack_client.storage.put_immutable_data( zonefile_text, txid, data_hash=zonefile_hash, required=required, skip=skip, required_exclusive=True )
if res is None:
log.error("Failed to store zonefile '%s' for '%s'" % (zonefile_hash, txid))
return False