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

            return(hash ?? UInt256.Zero);
        }