hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
rocksdb_block_query.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ROCKSDB_BLOCK_QUERY_HPP
7 #define IROHA_ROCKSDB_BLOCK_QUERY_HPP
8 
10 
11 namespace iroha::ametsuchi {
12 
13  struct RocksDBContext;
14 
19  public:
20  RocksDbBlockQuery(std::shared_ptr<RocksDBContext> db_context,
21  BlockStorage &block_storage,
22  logger::LoggerPtr log);
23 
24  std::optional<int32_t> getTxStatus(
25  const shared_model::crypto::Hash &hash) override;
26 
27  private:
28  std::shared_ptr<RocksDBContext> db_context_;
29  };
30 
31 } // namespace iroha::ametsuchi
32 
33 #endif // IROHA_POSTGRES_BLOCK_QUERY_HPP
Definition: block_query.hpp:17
Definition: rocksdb_block_query.hpp:18
Definition: hash.hpp:18
Definition: block_storage.hpp:23
Definition: block_query_base.hpp:20
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
RocksDbBlockQuery(std::shared_ptr< RocksDBContext > db_context, BlockStorage &block_storage, logger::LoggerPtr log)
Definition: rocksdb_block_query.cpp:14
std::optional< int32_t > getTxStatus(const shared_model::crypto::Hash &hash) override
Definition: rocksdb_block_query.cpp:21