mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 01:46:59 +08:00
bugfix: don't try to load a zone file on get_name_record() if there is no value hash
This commit is contained in:
@@ -666,7 +666,7 @@ class BlockstackdRPC(SimpleXMLRPCServer):
|
||||
db.close()
|
||||
|
||||
# try to get the zonefile as well
|
||||
if 'value_hash' in name_record:
|
||||
if 'value_hash' in name_record and name_record['value_hash'] is not None:
|
||||
conf = get_blockstack_opts()
|
||||
if is_atlas_enabled(conf):
|
||||
zfdata = self.get_zonefile_data(name_record['value_hash'], conf['zonefiles'])
|
||||
@@ -2648,10 +2648,10 @@ def run_blockstackd():
|
||||
print "Pass `--debug` for extra output."
|
||||
|
||||
elif args.action == 'index':
|
||||
# reindex
|
||||
# reindex subdomains
|
||||
start_block = args.start_block
|
||||
end_block = args.end_block
|
||||
|
||||
|
||||
# get db state
|
||||
db = get_or_instantiate_db_state(working_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user