hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_proposal_validator.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_PROTO_PROPOSAL_VALIDATOR_HPP
6 #define IROHA_PROTO_PROPOSAL_VALIDATOR_HPP
7 
8 #include "proposal.pb.h"
10 
11 namespace shared_model {
12  namespace validation {
14  : public AbstractValidator<iroha::protocol::Proposal> {
15  public:
16  using ProtoValidatorType =
19 
20  ProtoProposalValidator(ProtoValidatorType transaction_validator);
21 
22  Answer validate(const iroha::protocol::Proposal &proposal) const override;
23 
24  private:
25  ProtoValidatorType transaction_validator_;
26  };
27  } // namespace validation
28 } // namespace shared_model
29 
30 #endif // IROHA_PROTO_PROPOSAL_VALIDATOR_HPP
Answer validate(const iroha::protocol::Proposal &proposal) const override
Definition: proto_proposal_validator.cpp:14
Definition: abstract_validator.hpp:16
std::shared_ptr< shared_model::validation::AbstractValidator< typename iroha::protocol::Transaction >> ProtoValidatorType
Definition: proto_proposal_validator.hpp:18
ProtoProposalValidator(ProtoValidatorType transaction_validator)
Definition: proto_proposal_validator.cpp:10
Definition: proto_proposal_validator.hpp:13
Definition: command_executor.hpp:12
Definition: answer.hpp:28