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

#include "transaction_batch_factory_impl.hpp"

Inheritance diagram for shared_model::interface::TransactionBatchFactoryImpl:
Inheritance graph
Collaboration diagram for shared_model::interface::TransactionBatchFactoryImpl:
Collaboration graph

Public Types

using FactoryImplResult = FactoryResult< std::unique_ptr< TransactionBatch >>
 
- Public Types inherited from shared_model::interface::TransactionBatchFactory
template<typename BatchType >
using FactoryResult = iroha::expected::Result< BatchType, std::string >
 

Public Member Functions

FactoryImplResult createTransactionBatch (const types::SharedTxsCollectionType &transactions) const override
 
FactoryImplResult createTransactionBatch (std::shared_ptr< Transaction > transaction) const override
 
- Public Member Functions inherited from shared_model::interface::TransactionBatchFactory
virtual ~TransactionBatchFactory ()=default
 

Member Typedef Documentation

Member Function Documentation

TransactionBatchFactoryImpl::FactoryImplResult shared_model::interface::TransactionBatchFactoryImpl::createTransactionBatch ( const types::SharedTxsCollectionType transactions) const
overridevirtual

Create transaction batch out of collection of transactions

Parameters
transactionscollection of transactions, should be from the same batch
Returns
valid batch of transactions or string error

Implements shared_model::interface::TransactionBatchFactory.

Here is the call graph for this function:

Here is the caller graph for this function:

TransactionBatchFactoryImpl::FactoryImplResult shared_model::interface::TransactionBatchFactoryImpl::createTransactionBatch ( std::shared_ptr< Transaction transaction) const
overridevirtual

Creates transaction batch from single transaction

Parameters
transactionis transaction being validated and used to create batch
Returns
batch with single transaction or string error
Note
transactions in such batches may not have batch meta information

Implements shared_model::interface::TransactionBatchFactory.

Here is the call graph for this function:


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