6 #ifndef KAGOME_CORE_NETWORK_TYPES_OWNPEERINFO 7 #define KAGOME_CORE_NETWORK_TYPES_OWNPEERINFO 9 #include <libp2p/peer/peer_info.hpp> 15 std::vector<libp2p::multi::Multiaddress> public_addrs,
16 std::vector<libp2p::multi::Multiaddress> listen_addrs)
18 .addresses = std::move(public_addrs)},
22 return id == other.id && addresses == other.addresses
27 return !(*
this == other);
35 #endif // KAGOME_CORE_NETWORK_TYPES_OWNPEERINFO OwnPeerInfo(libp2p::peer::PeerId peer_id, std::vector< libp2p::multi::Multiaddress > public_addrs, std::vector< libp2p::multi::Multiaddress > listen_addrs)
bool operator!=(const OwnPeerInfo &other) const
std::vector< libp2p::multi::Multiaddress > listen_addresses
libp2p::peer::PeerInfo PeerInfo
bool operator==(const OwnPeerInfo &other) const
libp2p::peer::PeerId PeerId