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

Answer validate (const interface::Block &block) const override
 
- Public Member Functions inherited from shared_model::validation::ContainerValidator< interface::Block, FieldValidator, TransactionsCollectionValidator >
 ContainerValidator (std::shared_ptr< ValidatorsConfig > config, FieldValidator field_validator)
 
 ContainerValidator (std::shared_ptr< ValidatorsConfig > config)
 
Answer validate (const interface::Block &cont, const std::string &reason_name, Validator &&validator) const
 
Answer validate (const interface::Block &cont, const std::string &reason_name) const
 
- Public Member Functions inherited from shared_model::validation::AbstractValidator< interface::Block >
virtual ~AbstractValidator ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from shared_model::validation::ContainerValidator< interface::Block, FieldValidator, TransactionsCollectionValidator >
void validateTransactions (ReasonsGroupType &reason, const interface::types::TransactionsCollectionType &transactions, interface::types::TimestampType current_timestamp) const
 
 ContainerValidator (FieldValidator field_validator, TransactionsCollectionValidator transactions_collection_validator)
 
- Protected Attributes inherited from shared_model::validation::ContainerValidator< interface::Block, FieldValidator, TransactionsCollectionValidator >
FieldValidator field_validator_
 

Detailed Description

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

Class that validates block

Member Function Documentation

◆ validate()

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

Applies validation on block

Parameters
block
Returns
Answer containing 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: