Esempio n. 1
0
 public IRpcMethodResult GetVerifiedHashes(List <string> hashes)
 {
     try
     {
         BlockComponent component = new BlockComponent();
         List <Block>   result    = component.GetBlockEntityByHash(hashes);
         return(Ok(result));
     }
     catch (CommonException ce)
     {
         return(Error(ce.ErrorCode, ce.Message, ce));
     }
     catch (Exception ex)
     {
         return(Error(ErrorCode.UNKNOWN_ERROR, ex.Message, ex));
     }
 }