hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
verified_proposal_creator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_VERIFIED_PROPOSAL_CREATOR_HPP
7 #define IROHA_VERIFIED_PROPOSAL_CREATOR_HPP
8 
9 #include <rxcpp/rx.hpp>
11 
12 namespace shared_model {
13  namespace interface {
14  class Proposal;
15  } // namespace interface
16 } // namespace shared_model
17 
18 namespace iroha {
19  namespace consensus {
20  struct Round;
21  } // namespace consensus
22 
23  namespace simulator {
24 
29  public:
33  virtual boost::optional<
34  std::shared_ptr<validation::VerifiedProposalAndErrors>>
35  processProposal(const shared_model::interface::Proposal &proposal) = 0;
36 
40  virtual rxcpp::observable<VerifiedProposalCreatorEvent>
41  onVerifiedProposal() = 0;
42 
43  virtual ~VerifiedProposalCreator() = default;
44  };
45  } // namespace simulator
46 } // namespace iroha
47 #endif // IROHA_VERIFIED_PROPOSAL_CREATOR_HPP
Definition: proposal.hpp:17
Definition: verified_proposal_creator.hpp:28
Definition: block_query.hpp:16
Definition: command_executor.hpp:12