hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
chain_validator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CHAIN_VALIDATOR_HPP
7 #define IROHA_CHAIN_VALIDATOR_HPP
8 
9 #include <rxcpp/rx.hpp>
10 
11 namespace shared_model {
12  namespace interface {
13  class Block;
14  } // namespace interface
15 } // namespace shared_model
16 
17 namespace iroha {
18  namespace ametsuchi {
19  class MutableStorage;
20  }
21 
22  namespace validation {
23 
29  public:
30  virtual ~ChainValidator() = default;
31 
43  virtual bool validateAndApply(
44  rxcpp::observable<std::shared_ptr<shared_model::interface::Block>>
45  blocks,
46  ametsuchi::MutableStorage &storage) const = 0;
47  };
48  } // namespace validation
49 } // namespace iroha
50 
51 #endif // IROHA_CHAIN_VALIDATOR_HPP
Definition: chain_validator.hpp:28
Definition: block_query.hpp:16
Definition: mutable_storage.hpp:30
Definition: command_executor.hpp:12