Example #1
0
 public async Task <UInt256> GetBlockHashFromHeight(uint height)
 {
     return(await _redisDbContext.GetFromHashIndex(RedisIndex.BlockHeight, height));
 }
Example #2
0
        public async Task <UInt256> GetBlockHashFromHeight(uint height)
        {
            var hash = await _redisDbContext.GetFromHashIndex(RedisIndex.BlockHeight, height);

            return(hash ?? UInt256.Zero);
        }