hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proposal.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROPOSAL_HPP
7 #define IROHA_PROPOSAL_HPP
8 
9 #include <vector>
10 #include "model/transaction.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
20  struct Proposal {
21  explicit Proposal(std::vector<Transaction> txs)
22  : transactions(txs), height(0) {}
23 
27  const std::vector<Transaction> transactions{};
28 
33  uint64_t height{};
34 
38  uint64_t created_time{};
39 
40  bool operator==(const Proposal &rhs) const;
41  bool operator!=(const Proposal &rhs) const;
42  };
43  } // namespace model
44 } // namespace iroha
45 
46 #endif // IROHA_PROPOSAL_HPP
bool operator!=(const Proposal &rhs) const
Definition: model_operators.cpp:38
uint64_t created_time
Definition: proposal.hpp:38
uint64_t height
Definition: proposal.hpp:33
bool operator==(const Proposal &rhs) const
Definition: model_operators.cpp:208
Definition: block_query.hpp:16
Definition: proposal.hpp:20
const std::vector< Transaction > transactions
Definition: proposal.hpp:27
Proposal(std::vector< Transaction > txs)
Definition: proposal.hpp:21