Kagome
Polkadot Runtime Engine in C++17
req_collation_protocol.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_NETWORK_REQCOLLATIONROTOCOL
7 #define KAGOME_NETWORK_REQCOLLATIONROTOCOL
8 
10 
11 #include <memory>
12 
14 #include "log/logger.hpp"
17 
18 namespace kagome::network {
19 
21  public:
22  virtual void request(
23  const PeerId &peer_id,
25  std::function<void(outcome::result<CollationFetchingResponse>)>
26  &&response_handler) = 0;
27  };
28 
29 } // namespace kagome::network
30 
31 #endif // KAGOME_NETWORK_REQCOLLATIONROTOCOL
virtual void request(const PeerId &peer_id, CollationFetchingRequest request, std::function< void(outcome::result< CollationFetchingResponse >)> &&response_handler)=0
libp2p::peer::PeerId PeerId