hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_block_validator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_BLOCK_VALIDATOR_HPP
7 #define IROHA_PROTO_BLOCK_VALIDATOR_HPP
8 
10 
11 namespace iroha::protocol {
12  class Block;
13  class Block_v1;
14 } // namespace iroha::protocol
15 
16 namespace shared_model::validation {
18  : public AbstractValidator<iroha::protocol::Block>,
19  public AbstractValidator<iroha::protocol::Block_v1> {
20  public:
21  std::optional<ValidationError> validate(
22  iroha::protocol::Block const &block) const override;
23  std::optional<ValidationError> validate(
24  iroha::protocol::Block_v1 const &block) const override;
25  };
26 } // namespace shared_model::validation
27 
28 #endif // IROHA_PROTO_BLOCK_VALIDATOR_HPP
Definition: proto_block_validator.hpp:17
Definition: wsv_restorer_impl.hpp:20
Definition: wsv_restorer_impl.hpp:18
Definition: wsv_restorer_impl.hpp:25