Kagome
Polkadot Runtime Engine in C++17
kagome::network::GrandpaTransmitterImpl Class Referencefinal

#include <grandpa_transmitter_impl.hpp>

Inheritance diagram for kagome::network::GrandpaTransmitterImpl:
Collaboration diagram for kagome::network::GrandpaTransmitterImpl:

Public Member Functions

 GrandpaTransmitterImpl (std::shared_ptr< Router > router)
 
void sendNeighborMessage (GrandpaNeighborMessage &&message) override
 
void sendVoteMessage (const libp2p::peer::PeerId &peer_id, GrandpaVote &&message) override
 
void sendVoteMessage (GrandpaVote &&message) override
 
void sendCommitMessage (const libp2p::peer::PeerId &peer_id, FullCommitMessage &&message) override
 
void sendCommitMessage (FullCommitMessage &&message) override
 
void sendCatchUpRequest (const libp2p::peer::PeerId &peer_id, CatchUpRequest &&message) override
 
void sendCatchUpResponse (const libp2p::peer::PeerId &peer_id, CatchUpResponse &&message) override
 
- Public Member Functions inherited from kagome::network::GrandpaTransmitter
virtual ~GrandpaTransmitter ()=default
 

Private Attributes

std::shared_ptr< Routerrouter_
 

Detailed Description

Definition at line 14 of file grandpa_transmitter_impl.hpp.

Constructor & Destructor Documentation

kagome::network::GrandpaTransmitterImpl::GrandpaTransmitterImpl ( std::shared_ptr< Router router)

Definition at line 12 of file grandpa_transmitter_impl.cpp.

Member Function Documentation

void kagome::network::GrandpaTransmitterImpl::sendCatchUpRequest ( const libp2p::peer::PeerId &  peer_id,
CatchUpRequest &&  message 
)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 49 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendCatchUpResponse ( const libp2p::peer::PeerId &  peer_id,
CatchUpResponse &&  message 
)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 56 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendCommitMessage ( const libp2p::peer::PeerId &  peer_id,
FullCommitMessage &&  message 
)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 36 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendCommitMessage ( FullCommitMessage &&  message)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 43 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendNeighborMessage ( GrandpaNeighborMessage &&  message)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 16 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendVoteMessage ( const libp2p::peer::PeerId &  peer_id,
GrandpaVote &&  message 
)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 23 of file grandpa_transmitter_impl.cpp.

void kagome::network::GrandpaTransmitterImpl::sendVoteMessage ( GrandpaVote &&  message)
overridevirtual

Implements kagome::network::GrandpaTransmitter.

Definition at line 30 of file grandpa_transmitter_impl.cpp.

Member Data Documentation

std::shared_ptr<Router> kagome::network::GrandpaTransmitterImpl::router_
private

Definition at line 37 of file grandpa_transmitter_impl.hpp.


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