Kagome
Polkadot Runtime Engine in C++17
grandpa_transmitter_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_NETWORK_GRANDPATRANSMITTERIMPL
7 #define KAGOME_NETWORK_GRANDPATRANSMITTERIMPL
8 
10 
11 namespace kagome::network {
12  class Router;
13 
15  public:
16  GrandpaTransmitterImpl(std::shared_ptr<Router> router);
17 
18  void sendNeighborMessage(GrandpaNeighborMessage &&message) override;
19 
20  void sendVoteMessage(const libp2p::peer::PeerId &peer_id,
21  GrandpaVote &&message) override;
22 
23  void sendVoteMessage(GrandpaVote &&message) override;
24 
25  void sendCommitMessage(const libp2p::peer::PeerId &peer_id,
26  FullCommitMessage &&message) override;
27 
28  void sendCommitMessage(FullCommitMessage &&message) override;
29 
30  void sendCatchUpRequest(const libp2p::peer::PeerId &peer_id,
31  CatchUpRequest &&message) override;
32 
33  void sendCatchUpResponse(const libp2p::peer::PeerId &peer_id,
34  CatchUpResponse &&message) override;
35 
36  private:
37  std::shared_ptr<Router> router_;
38  };
39 
40 } // namespace kagome::network
41 
42 #endif // KAGOME_NETWORK_GRANDPATRANSMITTERIMPL
void sendCatchUpResponse(const libp2p::peer::PeerId &peer_id, CatchUpResponse &&message) override
void sendCommitMessage(const libp2p::peer::PeerId &peer_id, FullCommitMessage &&message) override
libp2p::peer::PeerId PeerId
void sendNeighborMessage(GrandpaNeighborMessage &&message) override
void sendVoteMessage(const libp2p::peer::PeerId &peer_id, GrandpaVote &&message) override
GrandpaTransmitterImpl(std::shared_ptr< Router > router)
void sendCatchUpRequest(const libp2p::peer::PeerId &peer_id, CatchUpRequest &&message) override