6 #ifndef KAGOME_CORE_CONSENSUS_GRANDPA_NEIGHBOROBSERVER 7 #define KAGOME_CORE_CONSENSUS_GRANDPA_NEIGHBOROBSERVER 9 #include <libp2p/peer/peer_id.hpp> 33 #endif // KAGOME_CORE_CONSENSUS_GRANDPA_NEIGHBOROBSERVER
virtual ~NeighborObserver()=default
observes incoming neighbor messages. Abstraction of a network.
libp2p::peer::PeerId PeerId
virtual void onNeighborMessage(const libp2p::peer::PeerId &peer_id, const network::GrandpaNeighborMessage &msg)=0