예제 #1
0
 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 
예제 #2
0
 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