Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sync_protocol_observer.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_SYNC_PROTOCOL_OBSERVER_HPP
7
#define KAGOME_SYNC_PROTOCOL_OBSERVER_HPP
8
9
#include <
outcome/outcome.hpp
>
10
#include "
network/types/blocks_request.hpp
"
11
#include "
network/types/blocks_response.hpp
"
12
13
namespace
kagome::network
{
17
class
SyncProtocolObserver
{
18
public
:
19
virtual
~SyncProtocolObserver
() =
default
;
20
26
virtual
outcome::result<BlocksResponse>
onBlocksRequest
(
27
const
BlocksRequest
&request)
const
= 0;
28
};
29
}
// namespace kagome::network
30
31
#endif // KAGOME_SYNC_PROTOCOL_OBSERVER_HPP
blocks_response.hpp
blocks_request.hpp
outcome.hpp
kagome::network::SyncProtocolObserver
Definition:
sync_protocol_observer.hpp:17
kagome::network::BlocksRequest
Definition:
blocks_request.hpp:23
kagome::network::SyncProtocolObserver::onBlocksRequest
virtual outcome::result< BlocksResponse > onBlocksRequest(const BlocksRequest &request) const =0
kagome::network::SyncProtocolObserver::~SyncProtocolObserver
virtual ~SyncProtocolObserver()=default
kagome::network
Definition:
author_api_impl.hpp:37
core
network
sync_protocol_observer.hpp
Generated by
1.8.11