hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::validation::StatefulValidatorImpl Class Reference

#include "stateful_validator_impl.hpp"

Inheritance diagram for iroha::validation::StatefulValidatorImpl:
Inheritance graph
Collaboration diagram for iroha::validation::StatefulValidatorImpl:
Collaboration graph

Public Member Functions

 StatefulValidatorImpl (std::unique_ptr< shared_model::interface::UnsafeProposalFactory > factory, std::shared_ptr< shared_model::interface::TransactionBatchParser > batch_parser, logger::LoggerPtr log)
 
std::unique_ptr< validation::VerifiedProposalAndErrorsvalidate (const shared_model::interface::Proposal &proposal, ametsuchi::TemporaryWsv &temporaryWsv) override
 
- Public Member Functions inherited from iroha::validation::StatefulValidator
virtual ~StatefulValidator ()=default
 

Detailed Description

Interface for performing stateful validation

Constructor & Destructor Documentation

iroha::validation::StatefulValidatorImpl::StatefulValidatorImpl ( std::unique_ptr< shared_model::interface::UnsafeProposalFactory factory,
std::shared_ptr< shared_model::interface::TransactionBatchParser batch_parser,
logger::LoggerPtr  log 
)

Member Function Documentation

std::unique_ptr< validation::VerifiedProposalAndErrors > iroha::validation::StatefulValidatorImpl::validate ( const shared_model::interface::Proposal proposal,
ametsuchi::TemporaryWsv temporaryWsv 
)
overridevirtual

Function perform stateful validation on proposal and return proposal with valid transactions

Parameters
proposal- proposal for validation
wsv- temporary wsv for validation, this wsv not affected on ledger, all changes after removing wsv will be ignored
Returns
proposal with valid transactions and errors, which appeared in a process of validating

Implements iroha::validation::StatefulValidator.

Here is the call graph for this function:


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