hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_set_quorum.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_SET_QUORUM_HPP
7 #define IROHA_PROTO_SET_QUORUM_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class SetQuorum final : public interface::SetQuorum {
16  public:
17  explicit SetQuorum(iroha::protocol::Command &command);
18 
19  const interface::types::AccountIdType &accountId() const override;
20 
21  interface::types::QuorumType newQuorum() const override;
22 
23  private:
24  const iroha::protocol::SetAccountQuorum &set_account_quorum_;
25  };
26 
27  } // namespace proto
28 } // namespace shared_model
29 
30 #endif // IROHA_PROTO_SET_QUORUM_HPP
Definition: set_quorum.hpp:18
const interface::types::AccountIdType & accountId() const override
Definition: proto_set_quorum.cpp:14
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
interface::types::QuorumType newQuorum() const override
Definition: proto_set_quorum.cpp:18
SetQuorum(iroha::protocol::Command &command)
Definition: proto_set_quorum.cpp:11
Definition: proto_set_quorum.hpp:15
Definition: command_executor.hpp:12
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:62