Kagome
Polkadot Runtime Engine in C++17
collation_observer.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_COLLATION_OBSERVER_HPP
7 #define KAGOME_COLLATION_OBSERVER_HPP
8 
9 #include <libp2p/peer/peer_id.hpp>
10 
11 #include <libp2p/peer/peer_id.hpp>
14 #include "primitives/common.hpp"
15 
16 namespace kagome::network {
21  virtual ~CollationObserver() = default;
22 
28  virtual void onAdvertise(libp2p::peer::PeerId const &peer_id,
29  primitives::BlockHash para_hash) = 0;
30 
34  virtual void onDeclare(
35  libp2p::peer::PeerId const &peer_id,
36  CollatorPublicKey pubkey,
37  ParachainId para_id,
38  Signature signature
39  ) = 0;
42  };
43 } // namespace kagome::network
44 
45 #endif // KAGOME_COLLATION_OBSERVER_HPP
virtual void onAdvertise(libp2p::peer::PeerId const &peer_id, primitives::BlockHash para_hash)=0
virtual ~CollationObserver()=default
crypto::Sr25519PublicKey CollatorPublicKey
virtual void onDeclare(libp2p::peer::PeerId const &peer_id, CollatorPublicKey pubkey, ParachainId para_id, Signature signature)=0
libp2p::peer::PeerId PeerId
crypto::Sr25519Signature Signature