6 #ifndef KAGOME_NETWORK_IMPL_ROUTER_LIBP2P_HPP 7 #define KAGOME_NETWORK_IMPL_ROUTER_LIBP2P_HPP 13 #include "libp2p/connection/loopback_stream.hpp" 14 #include "libp2p/host/host.hpp" 15 #include "libp2p/multi/multiaddress.hpp" 16 #include "libp2p/protocol/ping.hpp" 32 public std::enable_shared_from_this<RouterLibp2p> {
35 std::shared_ptr<application::AppStateManager> app_state_manager,
40 std::shared_ptr<libp2p::protocol::Ping> ping_proto,
41 std::shared_ptr<network::ProtocolFactory> protocol_factory);
54 std::shared_ptr<BlockAnnounceProtocol> getBlockAnnounceProtocol()
56 std::shared_ptr<PropagateTransactionsProtocol>
57 getPropagateTransactionsProtocol()
const override;
58 std::shared_ptr<StateProtocol> getStateProtocol()
const override;
59 std::shared_ptr<SyncProtocol> getSyncProtocol()
const override;
60 std::shared_ptr<GrandpaProtocol> getGrandpaProtocol()
const override;
61 std::shared_ptr<CollationProtocol> getCollationProtocol()
const override;
62 std::shared_ptr<ReqCollationProtocol> getReqCollationProtocol()
65 std::shared_ptr<libp2p::protocol::Ping> getPingProtocol()
const override;
75 outcome::result<void> appendPeerIdToAddress(
76 libp2p::multi::Multiaddress &address)
const;
88 std::shared_ptr<PropagateTransactionsProtocol>
98 #endif // KAGOME_NETWORK_IMPL_ROUTER_LIBP2P_HPP
std::shared_ptr< libp2p::protocol::Ping > ping_protocol_
std::shared_ptr< SyncProtocol > sync_protocol_
const application::AppConfiguration & app_config_
std::shared_ptr< BlockAnnounceProtocol > block_announce_protocol_
std::shared_ptr< ReqCollationProtocol > req_collation_protocol_
std::shared_ptr< CollationProtocol > collation_protocol_
std::shared_ptr< soralog::Logger > Logger
const OwnPeerInfo & own_info_
std::shared_ptr< PropagateTransactionsProtocol > propagate_transaction_protocol_
std::shared_ptr< application::AppStateManager > app_state_manager_
std::shared_ptr< GrandpaProtocol > grandpa_protocol_
std::shared_ptr< StateProtocol > state_protocol_
std::shared_ptr< network::ProtocolFactory > protocol_factory_