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

#include "tx_presence_cache_impl.hpp"

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

Public Member Functions

 TxPresenceCacheImpl (std::shared_ptr< Storage > storage)
 
boost::optional< TxCacheStatusTypecheck (const shared_model::crypto::Hash &hash) const override
 
boost::optional< BatchStatusCollectionTypecheck (const shared_model::interface::TransactionBatch &batch) const override
 
- Public Member Functions inherited from iroha::ametsuchi::TxPresenceCache
virtual ~TxPresenceCache ()=default
 

Additional Inherited Members

- Public Types inherited from iroha::ametsuchi::TxPresenceCache
using BatchStatusCollectionType = std::vector< TxCacheStatusType >
 response type which reflects status of each transaction in a batch More...
 

Constructor & Destructor Documentation

iroha::ametsuchi::TxPresenceCacheImpl::TxPresenceCacheImpl ( std::shared_ptr< Storage storage)
explicit

Member Function Documentation

boost::optional< TxCacheStatusType > iroha::ametsuchi::TxPresenceCacheImpl::check ( const shared_model::crypto::Hash hash) const
overridevirtual

Check transaction status by hash

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

Implements iroha::ametsuchi::TxPresenceCache.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Check batch status

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

Implements iroha::ametsuchi::TxPresenceCache.

Here is the call graph for this function:


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