示例#1
0
        public async Task <UInt256> GetBlockHashFromHeight(uint height)
        {
            var hash = await this._rocksDbContext.Get(height.BuildIxHeightToHashKey());

            return(hash == null || hash.Length == 0 ? UInt256.Zero : new UInt256(hash));
        }