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

#include "stateful_validator.hpp"

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

Public Member Functions

virtual ~StatefulValidator ()=default
 
virtual std::unique_ptr< VerifiedProposalAndErrorsvalidate (const shared_model::interface::Proposal &proposal, ametsuchi::TemporaryWsv &temporaryWsv)=0
 

Detailed Description

Interface for performing stateful validation

Constructor & Destructor Documentation

virtual iroha::validation::StatefulValidator::~StatefulValidator ( )
virtualdefault

Member Function Documentation

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

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

Implemented in iroha::validation::StatefulValidatorImpl.


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