Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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>
12
#include "
consensus/grandpa/common.hpp
"
13
#include "
network/types/collator_messages.hpp
"
14
#include "
primitives/common.hpp
"
15
16
namespace
kagome::network
{
20
struct
CollationObserver
{
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
kagome::network::CollationObserver::onAdvertise
virtual void onAdvertise(libp2p::peer::PeerId const &peer_id, primitives::BlockHash para_hash)=0
common.hpp
kagome::common::Blob< 32 >
kagome::network::CollationObserver::~CollationObserver
virtual ~CollationObserver()=default
kagome::network::CollatorPublicKey
crypto::Sr25519PublicKey CollatorPublicKey
Definition:
collator_messages.hpp:27
kagome::network::ParachainId
uint32_t ParachainId
Definition:
collator_messages.hpp:26
kagome::network::CollationObserver::onDeclare
virtual void onDeclare(libp2p::peer::PeerId const &peer_id, CollatorPublicKey pubkey, ParachainId para_id, Signature signature)=0
common.hpp
kagome::network::PeerId
libp2p::peer::PeerId PeerId
Definition:
protocol_base_impl.hpp:26
collator_messages.hpp
kagome::network
Definition:
author_api_impl.hpp:37
kagome::network::Signature
crypto::Sr25519Signature Signature
Definition:
collator_messages.hpp:25
kagome::network::CollationObserver
Definition:
collation_observer.hpp:20
core
network
collation_observer.hpp
Generated by
1.8.11