Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
req_collation_protocol.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_NETWORK_REQCOLLATIONROTOCOL
7
#define KAGOME_NETWORK_REQCOLLATIONROTOCOL
8
9
#include "
network/protocol_base.hpp
"
10
11
#include <memory>
12
13
#include "
application/chain_spec.hpp
"
14
#include "
log/logger.hpp
"
15
#include "
network/req_collation_observer.hpp
"
16
#include "
network/types/collator_messages.hpp
"
17
18
namespace
kagome::network
{
19
20
class
IReqCollationProtocol
:
public
ProtocolBase
{
21
public
:
22
virtual
void
request
(
23
const
PeerId
&peer_id,
24
CollationFetchingRequest
request
,
25
std::function<
void
(outcome::result<CollationFetchingResponse>)>
26
&&response_handler) = 0;
27
};
28
29
}
// namespace kagome::network
30
31
#endif // KAGOME_NETWORK_REQCOLLATIONROTOCOL
kagome::network::ProtocolBase
Definition:
protocol_base.hpp:25
protocol_base.hpp
chain_spec.hpp
kagome::network::IReqCollationProtocol
Definition:
req_collation_protocol.hpp:20
logger.hpp
kagome::network::IReqCollationProtocol::request
virtual void request(const PeerId &peer_id, CollationFetchingRequest request, std::function< void(outcome::result< CollationFetchingResponse >)> &&response_handler)=0
kagome::network::PeerId
libp2p::peer::PeerId PeerId
Definition:
protocol_base_impl.hpp:26
collator_messages.hpp
req_collation_observer.hpp
kagome::network::CollationFetchingRequest
Definition:
collator_messages.hpp:148
kagome::network
Definition:
author_api_impl.hpp:37
core
network
protocols
req_collation_protocol.hpp
Generated by
1.8.11