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

#include "pending_txs_storage_impl.hpp"

Inheritance diagram for iroha::PendingTransactionStorageImpl:
Inheritance graph
Collaboration diagram for iroha::PendingTransactionStorageImpl:
Collaboration graph

Public Types

using AccountIdType = shared_model::interface::types::AccountIdType
 
using HashType = shared_model::interface::types::HashType
 
using SharedTxsCollectionType = shared_model::interface::types::SharedTxsCollectionType
 
using TransactionBatch = shared_model::interface::TransactionBatch
 
using SharedState = std::shared_ptr< MstState >
 
using SharedBatch = std::shared_ptr< TransactionBatch >
 
using StateObservable = rxcpp::observable< SharedState >
 
using BatchObservable = rxcpp::observable< SharedBatch >
 

Public Member Functions

 PendingTransactionStorageImpl (StateObservable updated_batches, BatchObservable prepared_batch, BatchObservable expired_batch)
 
 ~PendingTransactionStorageImpl () override
 
SharedTxsCollectionType getPendingTransactions (const AccountIdType &account_id) const override
 
- Public Member Functions inherited from iroha::PendingTransactionStorage
virtual ~PendingTransactionStorage ()=default
 

Member Typedef Documentation

Constructor & Destructor Documentation

iroha::PendingTransactionStorageImpl::PendingTransactionStorageImpl ( StateObservable  updated_batches,
BatchObservable  prepared_batch,
BatchObservable  expired_batch 
)
iroha::PendingTransactionStorageImpl::~PendingTransactionStorageImpl ( )
override

Member Function Documentation

PendingTransactionStorageImpl::SharedTxsCollectionType iroha::PendingTransactionStorageImpl::getPendingTransactions ( const AccountIdType account_id) const
overridevirtual

Get all the pending transactions associated with request originator

Parameters
account_id- query creator
Returns
collection of interface::Transaction objects

Implements iroha::PendingTransactionStorage.

Here is the call graph for this function:

Member Data Documentation

std::unordered_map<HashType, std::shared_ptr<TransactionBatch>, HashType::Hasher> iroha::PendingTransactionStorageImpl::batches
std::unordered_map<AccountIdType, std::unordered_set<HashType, HashType::Hasher> > iroha::PendingTransactionStorageImpl::index

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