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 >
 
- Public Types inherited from iroha::PendingTransactionStorage
enum  ErrorCode { kNotFound }
 

Public Member Functions

SharedTxsCollectionType getPendingTransactions (const AccountIdType &account_id) const override
 
expected::Result< Response, ErrorCodegetPendingTransactions (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::TransactionsNumberType page_size, const std::optional< shared_model::interface::types::HashType > &first_tx_hash) const override
 
void insertPresenceCache (std::shared_ptr< ametsuchi::TxPresenceCache > &cache) override
 
void removeTransaction (HashType const &hash) override
 
void updatedBatchesHandler (const SharedState &updated_batches) override
 
void removeBatch (const SharedBatch &batch) override
 
- Public Member Functions inherited from iroha::PendingTransactionStorage
virtual expected::Result< Response, ErrorCodegetPendingTransactions (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::TransactionsNumberType page_size, const std::optional< shared_model::interface::types::HashType > &first_tx_hash) const =0
 
virtual void updatedBatchesHandler (std::shared_ptr< MstState > const &updated_batches)=0
 
virtual void removeBatch (std::shared_ptr< shared_model::interface::TransactionBatch > const &batch)=0
 
virtual ~PendingTransactionStorage ()=default
 

Member Typedef Documentation

◆ AccountIdType

◆ HashType

◆ SharedBatch

◆ SharedState

◆ SharedTxsCollectionType

◆ TransactionBatch

Member Function Documentation

◆ getPendingTransactions() [1/2]

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

DEPRECATED (Replaced by the following method with an extended interface) Going to be removed with the upcoming major release.

Get all the pending transactions associated with request originator

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

Implements iroha::PendingTransactionStorage.

◆ getPendingTransactions() [2/2]

iroha::expected::Result< PendingTransactionStorageImpl::Response, PendingTransactionStorageImpl::ErrorCode > PendingTransactionStorageImpl::getPendingTransactions ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::TransactionsNumberType  page_size,
const std::optional< shared_model::interface::types::HashType > &  first_tx_hash 
) const
override
Here is the call graph for this function:

◆ insertPresenceCache()

void PendingTransactionStorageImpl::insertPresenceCache ( std::shared_ptr< ametsuchi::TxPresenceCache > &  cache)
overridevirtual

Stores TxPresenceCache ref, for checks.

Parameters
cache- ref to the stored object.

Implements iroha::PendingTransactionStorage.

◆ removeBatch()

void PendingTransactionStorageImpl::removeBatch ( const SharedBatch batch)
override
Here is the call graph for this function:

◆ removeTransaction()

void PendingTransactionStorageImpl::removeTransaction ( HashType const &  hash)
overridevirtual

Implements iroha::PendingTransactionStorage.

Here is the call graph for this function:

◆ updatedBatchesHandler()

void PendingTransactionStorageImpl::updatedBatchesHandler ( const SharedState updated_batches)
override
Here is the call graph for this function:

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