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

#include "tx_presence_cache.hpp"

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

Public Types

using BatchStatusCollectionType = std::vector< TxCacheStatusType >
 response type which reflects status of each transaction in a batch More...
 

Public Member Functions

virtual boost::optional< TxCacheStatusTypecheck (const shared_model::crypto::Hash &hash) const =0
 
virtual boost::optional< BatchStatusCollectionTypecheck (const shared_model::interface::TransactionBatch &batch) const =0
 
virtual ~TxPresenceCache ()=default
 

Detailed Description

Class is responsible for checking transaction status in the ledger

Member Typedef Documentation

response type which reflects status of each transaction in a batch

Constructor & Destructor Documentation

virtual iroha::ametsuchi::TxPresenceCache::~TxPresenceCache ( )
virtualdefault

Member Function Documentation

virtual boost::optional<TxCacheStatusType> iroha::ametsuchi::TxPresenceCache::check ( const shared_model::crypto::Hash hash) const
pure virtual

Check transaction status by hash

Returns
transaction status if storage query was successful, boost::none otherwise

Implemented in iroha::ametsuchi::TxPresenceCacheImpl.

virtual boost::optional<BatchStatusCollectionType> iroha::ametsuchi::TxPresenceCache::check ( const shared_model::interface::TransactionBatch batch) const
pure virtual

Check batch status

Returns
a collection with answers about each transaction in the batch if storage queries were successful, boost::none otherwise

Implemented in iroha::ametsuchi::TxPresenceCacheImpl.


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