Kagome
Polkadot Runtime Engine in C++17
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>
12 
13 namespace kagome::network {
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
virtual outcome::result< BlocksResponse > onBlocksRequest(const BlocksRequest &request) const =0