hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::RocksDbBlockQuery Class Reference

#include "rocksdb_block_query.hpp"

Inheritance diagram for iroha::ametsuchi::RocksDbBlockQuery:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::RocksDbBlockQuery:
Collaboration graph

Public Member Functions

 RocksDbBlockQuery (std::shared_ptr< RocksDBContext > db_context, BlockStorage &block_storage, logger::LoggerPtr log)
 
std::optional< int32_t > getTxStatus (const shared_model::crypto::Hash &hash) override
 
- Public Member Functions inherited from iroha::ametsuchi::BlockQueryBase
 BlockQueryBase (BlockStorage &block_storage, logger::LoggerPtr log)
 
BlockResult getBlock (shared_model::interface::types::HeightType height) override
 
shared_model::interface::types::HeightType getTopBlockHeight () override
 
void reloadBlockstore () override
 
std::optional< TxCacheStatusTypecheckTxPresence (const shared_model::crypto::Hash &hash) override
 
- Public Member Functions inherited from iroha::ametsuchi::BlockQuery
virtual ~BlockQuery ()=default
 

Additional Inherited Members

- Public Types inherited from iroha::ametsuchi::BlockQuery
using BlockResult = expected::Result< std::unique_ptr< shared_model::interface::Block >, GetBlockError >
 
- Protected Attributes inherited from iroha::ametsuchi::BlockQueryBase
BlockStorageblock_storage_
 
logger::LoggerPtr log_
 

Detailed Description

Class which implements BlockQuery with a RocksDB backend.

Constructor & Destructor Documentation

◆ RocksDbBlockQuery()

iroha::ametsuchi::RocksDbBlockQuery::RocksDbBlockQuery ( std::shared_ptr< RocksDBContext db_context,
BlockStorage block_storage,
logger::LoggerPtr  log 
)

Member Function Documentation

◆ getTxStatus()

std::optional< int32_t > iroha::ametsuchi::RocksDbBlockQuery::getTxStatus ( const shared_model::crypto::Hash hash)
overridevirtual

Implements iroha::ametsuchi::BlockQueryBase.

Here is the call graph for this function:

The documentation for this class was generated from the following files: