hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
stateful_validator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_VALIDATION_STATEFUL_VALIDATOR_HPP
7 #define IROHA_VALIDATION_STATEFUL_VALIDATOR_HPP
8 
12 
13 namespace iroha {
14  namespace validation {
15 
20  public:
21  virtual ~StatefulValidator() = default;
22 
23  // TODO andrei 16.10.18 IR-1761 Rename methods in validators
24 
35  virtual std::unique_ptr<VerifiedProposalAndErrors> validate(
36  const shared_model::interface::Proposal &proposal,
37  ametsuchi::TemporaryWsv &temporaryWsv) = 0;
38  };
39  } // namespace validation
40 } // namespace iroha
41 #endif // IROHA_VALIDATION_STATELESS_VALIDATOR_HPP
Definition: proposal.hpp:17
Definition: stateful_validator.hpp:19
Definition: temporary_wsv.hpp:27
Definition: block_query.hpp:16
virtual std::unique_ptr< VerifiedProposalAndErrors > validate(const shared_model::interface::Proposal &proposal, ametsuchi::TemporaryWsv &temporaryWsv)=0