Kagome
Polkadot Runtime Engine in C++17
req_collation_observer.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_REQ_COLLATION_OBSERVER_HPP
7 #define KAGOME_REQ_COLLATION_OBSERVER_HPP
8 
9 #include <libp2p/peer/peer_id.hpp>
10 
13 #include "primitives/common.hpp"
14 
15 namespace kagome::network {
20  virtual ~ReqCollationObserver() = default;
21 
26  virtual outcome::result<CollationFetchingResponse> OnCollationRequest(
27  CollationFetchingRequest request) = 0;
28  };
29 } // namespace kagome::network
30 
31 #endif // KAGOME_REQ_COLLATION_OBSERVER_HPP
virtual outcome::result< CollationFetchingResponse > OnCollationRequest(CollationFetchingRequest request)=0