Kagome
Polkadot Runtime Engine in C++17
kagome::observers::ReqCollationObserverImpl Struct Reference
Inheritance diagram for kagome::observers::ReqCollationObserverImpl:
Collaboration diagram for kagome::observers::ReqCollationObserverImpl:

Public Member Functions

 ReqCollationObserverImpl (std::shared_ptr< network::PeerManager > pm)
 
 ~ReqCollationObserverImpl () override=default
 
outcome::result< network::CollationFetchingResponseOnCollationRequest (network::CollationFetchingRequest request) override
 
- Public Member Functions inherited from kagome::network::ReqCollationObserver
virtual ~ReqCollationObserver ()=default
 

Private Attributes

std::shared_ptr< network::PeerManagerpm_
 

Detailed Description

Definition at line 108 of file parachain_observer.cpp.

Constructor & Destructor Documentation

kagome::observers::ReqCollationObserverImpl::ReqCollationObserverImpl ( std::shared_ptr< network::PeerManager pm)
inline

Definition at line 109 of file parachain_observer.cpp.

kagome::observers::ReqCollationObserverImpl::~ReqCollationObserverImpl ( )
overridedefault

Member Function Documentation

outcome::result<network::CollationFetchingResponse> kagome::observers::ReqCollationObserverImpl::OnCollationRequest ( network::CollationFetchingRequest  request)
inlineoverridevirtual

Since we are not collator node. Received request should make call to subsystem to decrease rank of the requested node.

Need to decrease rank of the peer and return error.

Implements kagome::network::ReqCollationObserver.

Definition at line 115 of file parachain_observer.cpp.

Member Data Documentation

std::shared_ptr<network::PeerManager> kagome::observers::ReqCollationObserverImpl::pm_
private

Definition at line 122 of file parachain_observer.cpp.


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