hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
add_peer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ADD_PEER_HPP
7 #define IROHA_ADD_PEER_HPP
8 
9 #include "model/command.hpp"
10 #include "model/peer.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
15  struct Peer;
16 
20  struct AddPeer : public Command {
22 
23  bool operator==(const Command &command) const override;
24 
25  AddPeer() {}
26 
27  AddPeer(const Peer &peer) : peer(peer) {}
28  };
29  } // namespace model
30 } // namespace iroha
31 #endif // IROHA_ADD_PEER_HPP
Definition: add_peer.hpp:20
bool operator==(const Command &command) const override
Definition: model_operators.cpp:107
Definition: command.hpp:14
AddPeer()
Definition: add_peer.hpp:25
Peer peer
Definition: add_peer.hpp:21
Definition: block_query.hpp:16
Definition: peer.hpp:17
AddPeer(const Peer &peer)
Definition: add_peer.hpp:27