Kagome
Polkadot Runtime Engine in C++17
|
#include <collation_protocol.hpp>
Public Member Functions | |
CollationProtocol ()=delete | |
~CollationProtocol () override=default | |
CollationProtocol (libp2p::Host &host, application::AppConfiguration const &app_config, application::ChainSpec const &chain_spec, std::shared_ptr< CollationObserver > observer) | |
void | onIncomingStream (std::shared_ptr< Stream > stream) override |
void | newOutgoingStream (const PeerInfo &peer_info, std::function< void(outcome::result< std::shared_ptr< Stream >>)> &&cb) override |
bool | start () override |
bool | stop () override |
const std::string & | protocolName () const override |
Public Member Functions inherited from kagome::network::ProtocolBase | |
ProtocolBase ()=default | |
ProtocolBase (ProtocolBase &&) noexcept=delete | |
ProtocolBase (const ProtocolBase &)=delete | |
virtual | ~ProtocolBase ()=default |
ProtocolBase & | operator= (ProtocolBase &&) noexcept=delete |
ProtocolBase & | operator= (ProtocolBase const &)=delete |
Private Member Functions | |
template<bool DirectionIncoming, typename F > | |
void | exchangeHandshake (std::shared_ptr< kagome::network::Stream > const &stream, F &&func) |
template<bool DirectionIncoming, typename F > | |
void | doCollatorHandshake (std::shared_ptr< kagome::network::Stream > const &stream, F &&func) |
void | readCollationMsg (std::shared_ptr< kagome::network::Stream > stream) |
void | onCollationMessageRx (libp2p::peer::PeerId const &peer_id, CollationMessage &&collation_message) |
void | onCollationDeclRx (libp2p::peer::PeerId const &peer_id, CollatorDeclaration &&collation_decl) |
void | onCollationAdvRx (libp2p::peer::PeerId const &peer_id, CollatorAdvertisement &&collation_adv) |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
NonCopyable ()=default | |
~NonCopyable ()=default | |
Private Member Functions inherited from NonMovable | |
NonMovable (NonMovable &&)=delete | |
NonMovable & | operator= (NonMovable &&)=delete |
NonMovable ()=default | |
~NonMovable ()=default | |
Private Attributes | |
ProtocolBaseImpl | base_ |
std::shared_ptr< CollationObserver > | observer_ |
application::AppConfiguration const & | app_config_ |
Definition at line 33 of file collation_protocol.hpp.
|
delete |
|
overridedefault |
kagome::network::CollationProtocol::CollationProtocol | ( | libp2p::Host & | host, |
application::AppConfiguration const & | app_config, | ||
application::ChainSpec const & | chain_spec, | ||
std::shared_ptr< CollationObserver > | observer | ||
) |
Definition at line 17 of file collation_protocol.cpp.
|
inlineprivate |
Definition at line 99 of file collation_protocol.hpp.
|
inlineprivate |
Definition at line 62 of file collation_protocol.hpp.
|
overridevirtual |
Implements kagome::network::ProtocolBase.
Definition at line 34 of file collation_protocol.cpp.
|
private |
Definition at line 88 of file collation_protocol.cpp.
|
private |
Definition at line 77 of file collation_protocol.cpp.
|
private |
Definition at line 96 of file collation_protocol.cpp.
|
overridevirtual |
Implements kagome::network::ProtocolBase.
Definition at line 160 of file collation_protocol.cpp.
|
inlineoverridevirtual |
Implements kagome::network::ProtocolBase.
Definition at line 56 of file collation_protocol.hpp.
|
private |
Definition at line 112 of file collation_protocol.cpp.
|
overridevirtual |
Implements kagome::network::ProtocolBase.
Definition at line 26 of file collation_protocol.cpp.
|
overridevirtual |
Implements kagome::network::ProtocolBase.
Definition at line 30 of file collation_protocol.cpp.
|
private |
Definition at line 131 of file collation_protocol.hpp.
|
private |
Definition at line 129 of file collation_protocol.hpp.
|
private |
Definition at line 130 of file collation_protocol.hpp.