#include "block_query.hpp"


Classes | |
| struct | GetBlockError |
Public Types | |
| using | BlockResult = expected::Result< std::unique_ptr< shared_model::interface::Block >, GetBlockError > |
Public Member Functions | |
| virtual | ~BlockQuery ()=default |
| virtual BlockResult | getBlock (shared_model::interface::types::HeightType height)=0 |
| virtual shared_model::interface::types::HeightType | getTopBlockHeight ()=0 |
| virtual void | reloadBlockstore ()=0 |
| virtual std::optional< TxCacheStatusType > | checkTxPresence (const shared_model::crypto::Hash &hash)=0 |
Public interface for queries on blocks and transactions
| using iroha::ametsuchi::BlockQuery::BlockResult = expected::Result<std::unique_ptr<shared_model::interface::Block>, GetBlockError> |
|
virtualdefault |
|
pure virtual |
Synchronously checks whether transaction with given hash is present in any block
| hash | - transaction's hash |
Implemented in iroha::ametsuchi::BlockQueryBase.
|
pure virtual |
Retrieve block with given height from block storage
| height | - height of a block to retrieve |
Implemented in iroha::ametsuchi::BlockQueryBase.
|
pure virtual |
Get height of the top block.
Implemented in iroha::ametsuchi::BlockQueryBase.

|
pure virtual |
Reloads blockstore
Implemented in iroha::ametsuchi::BlockQueryBase.