def jsonrpc_lookup(self, name): """ Lookup the profile for a name. """ blockstore_state_engine = get_state_engine() name_record = blockstore_state_engine.get_name( name ) if name is None: return {"error": "Not found."} else: return name_record
def jsonrpc_lookup(self, name): """ Lookup the profile for a name. """ # are we doing our initial indexing? if is_indexing(): return {"error": "Indexing blockchain"} blockstore_state_engine = get_state_engine() name_record = blockstore_state_engine.get_name( name ) if name is None: return {"error": "Not found."} else: return name_record