hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
set_quorum.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SET_QUORUM_HPP
7 #define IROHA_SET_QUORUM_HPP
8 
9 #include <string>
10 #include "model/command.hpp"
11 
12 namespace iroha {
13  namespace model {
17  struct SetQuorum : public Command {
21  std::string account_id;
22 
26  uint32_t new_quorum;
27 
28  bool operator==(const Command &command) const override;
29 
30  SetQuorum() {}
31 
32  SetQuorum(const std::string &account_id, uint32_t new_quorum)
33  : account_id(account_id), new_quorum(new_quorum) {}
34  };
35  } // namespace model
36 } // namespace iroha
37 #endif // IROHA_SET_QUORUM_HPP
uint32_t new_quorum
Definition: set_quorum.hpp:26
std::string account_id
Definition: set_quorum.hpp:21
Definition: command.hpp:14
Definition: block_query.hpp:16
SetQuorum(const std::string &account_id, uint32_t new_quorum)
Definition: set_quorum.hpp:32
bool operator==(const Command &command) const override
Definition: model_operators.cpp:172
Definition: set_quorum.hpp:17
SetQuorum()
Definition: set_quorum.hpp:30