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

#include "block_validator.hpp"

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

Public Member Functions

 BlockValidator (std::shared_ptr< ValidatorsConfig > config)
 
std::optional< ValidationErrorvalidate (const interface::Block &block) const override
 
- Public Member Functions inherited from shared_model::validation::AbstractValidator< interface::Block >
virtual ~AbstractValidator ()=default
 

Detailed Description

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

Class that validates block

Constructor & Destructor Documentation

◆ BlockValidator()

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

Member Function Documentation

◆ validate()

template<typename FieldValidator , typename TransactionsCollectionValidator >
std::optional<ValidationError> shared_model::validation::BlockValidator< FieldValidator, TransactionsCollectionValidator >::validate ( const interface::Block block) const
inlineoverridevirtual

Applies validation on block

Parameters
block
Returns
found error if any

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

Here is the call graph for this function:

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