Пример #1
0
        public async Task <Transaction> GetTransaction(UInt256 hash)
        {
            var transactionRedisValue = await _redisDbContext.Get(hash.BuildDataTransactionKey());

            return(transactionRedisValue.IsNull ? null : _binarySerializer.Deserialize <Transaction>(transactionRedisValue));
        }
Пример #2
0
        public async Task <Transaction> GetTransaction(UInt256 hash)
        {
            var transactionRedisValue = await _redisDbContext.Get(hash.BuildDataTransactionKey());

            return(JsonConvert.DeserializeObject <Transaction>(transactionRedisValue));
        }
Пример #3
0
        public async Task <Transaction> GetTransaction(UInt256 hash)
        {
            var rawTransaction = await _rocksDbContext.Get(hash.BuildDataTransactionKey());

            return(rawTransaction == null ? null : _binarySerializer.Deserialize <Transaction>(rawTransaction));
        }