hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
synchronizer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SYNCHRONIZER_HPP
7 #define IROHA_SYNCHRONIZER_HPP
8 
9 #include <rxcpp/rx.hpp>
10 
13 
14 namespace iroha {
15  namespace synchronizer {
19  class Synchronizer {
20  public:
24  virtual void processOutcome(consensus::GateObject object) = 0;
25 
30  virtual rxcpp::observable<SynchronizationEvent> on_commit_chain() = 0;
31 
32  virtual ~Synchronizer() = default;
33  };
34 
35  } // namespace synchronizer
36 } // namespace iroha
37 #endif // IROHA_SYNCHRONIZER_HPP
Definition: synchronizer.hpp:19
Definition: block_query.hpp:16
virtual rxcpp::observable< SynchronizationEvent > on_commit_chain()=0
boost::variant< PairValid, VoteOther, ProposalReject, BlockReject, AgreementOnNone > GateObject
Definition: gate_object.hpp:90
virtual void processOutcome(consensus::GateObject object)=0