hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
consensus_gate.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CONSENSUS_GATE_HPP
7 #define IROHA_CONSENSUS_GATE_HPP
8 
9 namespace iroha {
10 
11  namespace simulator {
12  struct BlockCreatorEvent;
13  } // namespace simulator
14 
15  namespace network {
16 
20  class ConsensusGate {
21  public:
25  virtual void vote(const simulator::BlockCreatorEvent &event) = 0;
26 
28  virtual void stop() = 0;
29 
30  virtual ~ConsensusGate() = default;
31  };
32 
33  } // namespace network
34 } // namespace iroha
35 
36 #endif // IROHA_CONSENSUS_GATE_HPP
Definition: block_creator_common.hpp:34
Definition: block_query.hpp:15
Definition: consensus_gate.hpp:20