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

#include "proposal_validator.hpp"

Inheritance diagram for shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >:
Inheritance graph
Collaboration diagram for shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >:
Collaboration graph

Public Member Functions

 ProposalValidator (std::shared_ptr< ValidatorsConfig > config)
 
boost::optional< ValidationErrorvalidate (const interface::Proposal &proposal) const
 
- Public Member Functions inherited from shared_model::validation::AbstractValidator< interface::Proposal >
virtual ~AbstractValidator ()=default
 

Detailed Description

template<typename FieldValidator, typename TransactionsCollectionValidator>
class shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >

Class that validates proposal

Constructor & Destructor Documentation

◆ ProposalValidator()

template<typename FieldValidator , typename TransactionsCollectionValidator >
shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >::ProposalValidator ( std::shared_ptr< ValidatorsConfig config)
inline

Member Function Documentation

◆ validate()

template<typename FieldValidator , typename TransactionsCollectionValidator >
boost::optional<ValidationError> shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >::validate ( const interface::Proposal proposal) const
inlinevirtual

Applies validation on proposal

Parameters
proposal
Returns
found error if any

Implements shared_model::validation::AbstractValidator< interface::Proposal >.

Here is the call graph for this function:

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