hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty > Class Template Reference

#include "transactions_collection_validator.hpp"

Collaboration diagram for shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >:
Collaboration graph

Public Member Functions

 TransactionsCollectionValidator (std::shared_ptr< ValidatorsConfig > config)
 
Answer validate (const interface::types::TransactionsForwardCollectionType &transactions) const
 
Answer validate (const interface::types::SharedTxsCollectionType &transactions) const
 
Answer validate (const interface::types::TransactionsForwardCollectionType &transactions, interface::types::TimestampType current_timestamp) const
 
Answer validate (const interface::types::SharedTxsCollectionType &transactions, interface::types::TimestampType current_timestamp) const
 
const TransactionValidatorgetTransactionValidator () const
 

Protected Attributes

TransactionValidator transaction_validator_
 
std::shared_ptr< AbstractValidator< interface::TransactionBatch > > batch_validator_
 

Detailed Description

template<typename TransactionValidator, bool CollectionCanBeEmpty = false>
class shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >

Validator of transaction's collection, this is not fair implementation now, it always returns empty answer

Constructor & Destructor Documentation

template<typename TransactionValidator, bool CollectionCanBeEmpty = false>
shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::TransactionsCollectionValidator ( std::shared_ptr< ValidatorsConfig config)
inlineexplicit

Here is the call graph for this function:

Member Function Documentation

template<typename TransactionValidator , bool CollectionCanBeEmpty>
const TransactionValidator & shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::getTransactionValidator ( ) const

Here is the caller graph for this function:

template<typename TransactionValidator , bool CollectionCanBeEmpty>
Answer shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::validate ( const interface::types::TransactionsForwardCollectionType transactions) const

Validates collection of transactions

Parameters
transactionscollection of transactions
Returns
Answer containing errors if any

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename TransactionValidator , bool CollectionCanBeEmpty>
Answer shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::validate ( const interface::types::SharedTxsCollectionType transactions) const

Here is the call graph for this function:

template<typename TransactionValidator , bool CollectionCanBeEmpty>
Answer shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::validate ( const interface::types::TransactionsForwardCollectionType transactions,
interface::types::TimestampType  current_timestamp 
) const

Here is the call graph for this function:

template<typename TransactionValidator , bool CollectionCanBeEmpty>
Answer shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::validate ( const interface::types::SharedTxsCollectionType transactions,
interface::types::TimestampType  current_timestamp 
) const

Here is the call graph for this function:

Member Data Documentation

template<typename TransactionValidator, bool CollectionCanBeEmpty = false>
std::shared_ptr<AbstractValidator<interface::TransactionBatch> > shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::batch_validator_
protected
template<typename TransactionValidator, bool CollectionCanBeEmpty = false>
TransactionValidator shared_model::validation::TransactionsCollectionValidator< TransactionValidator, CollectionCanBeEmpty >::transaction_validator_
protected

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