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 <optional>
10 
13 
14 namespace iroha {
15  namespace synchronizer {
19  class Synchronizer {
20  public:
24  virtual std::optional<SynchronizationEvent> processOutcome(
25  consensus::GateObject object) = 0;
26 
27  virtual ~Synchronizer() = default;
28  };
29 
30  } // namespace synchronizer
31 } // namespace iroha
32 #endif // IROHA_SYNCHRONIZER_HPP
Definition: synchronizer.hpp:19
std::variant< PairValid, VoteOther, ProposalReject, BlockReject, AgreementOnNone, Future > GateObject
Definition: gate_object.hpp:96
Definition: block_query.hpp:15
virtual std::optional< SynchronizationEvent > processOutcome(consensus::GateObject object)=0