Kagome
Polkadot Runtime Engine in C++17
kagome::network::SyncProtocolObserver Class Referenceabstract

#include <sync_protocol_observer.hpp>

Inheritance diagram for kagome::network::SyncProtocolObserver:
Collaboration diagram for kagome::network::SyncProtocolObserver:

Public Member Functions

virtual ~SyncProtocolObserver ()=default
 
virtual outcome::result< BlocksResponseonBlocksRequest (const BlocksRequest &request) const =0
 

Detailed Description

Reactive part of Sync protocol

Definition at line 17 of file sync_protocol_observer.hpp.

Constructor & Destructor Documentation

virtual kagome::network::SyncProtocolObserver::~SyncProtocolObserver ( )
virtualdefault

Member Function Documentation

virtual outcome::result<BlocksResponse> kagome::network::SyncProtocolObserver::onBlocksRequest ( const BlocksRequest request) const
pure virtual

Process a blocks request

Parameters
requestto be processed
Returns
blocks request or error

Implemented in kagome::network::SyncProtocolObserverImpl.


The documentation for this class was generated from the following file: