Kagome
Polkadot Runtime Engine in C++17
grandpa_transmitter.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_NETWORK_GRANDPATRANSMITTER
7 #define KAGOME_NETWORK_GRANDPATRANSMITTER
8 
9 #include <libp2p/peer/peer_id.hpp>
10 
12 
13 namespace kagome::network {
14 
19  public:
20  virtual ~GrandpaTransmitter() = default;
21 
22  virtual void sendNeighborMessage(GrandpaNeighborMessage &&message) = 0;
23 
24  virtual void sendVoteMessage(const libp2p::peer::PeerId &peer_id,
25  GrandpaVote &&message) = 0;
26 
27  virtual void sendVoteMessage(GrandpaVote &&message) = 0;
28 
29  virtual void sendCommitMessage(const libp2p::peer::PeerId &peer_id,
30  FullCommitMessage &&message) = 0;
31 
32  virtual void sendCommitMessage(FullCommitMessage &&message) = 0;
33 
34  virtual void sendCatchUpRequest(const libp2p::peer::PeerId &peer_id,
35  CatchUpRequest &&message) = 0;
36 
37  virtual void sendCatchUpResponse(const libp2p::peer::PeerId &peer_id,
38  CatchUpResponse &&message) = 0;
39  };
40 
41 } // namespace kagome::network
42 
43 #endif // KAGOME_NETWORK_GRANDPATRANSMITTER
virtual void sendCommitMessage(const libp2p::peer::PeerId &peer_id, FullCommitMessage &&message)=0
virtual void sendNeighborMessage(GrandpaNeighborMessage &&message)=0
virtual void sendCatchUpResponse(const libp2p::peer::PeerId &peer_id, CatchUpResponse &&message)=0
libp2p::peer::PeerId PeerId
virtual void sendVoteMessage(const libp2p::peer::PeerId &peer_id, GrandpaVote &&message)=0
virtual void sendCatchUpRequest(const libp2p::peer::PeerId &peer_id, CatchUpRequest &&message)=0