Kagome
Polkadot Runtime Engine in C++17
|
#include <address_publisher.hpp>
Public Member Functions | |
AddressPublisher (std::shared_ptr< runtime::AuthorityDiscoveryApi > authority_discovery_api, network::Roles roles, std::shared_ptr< application::AppStateManager > app_state_manager, std::shared_ptr< blockchain::BlockTree > block_tree, std::shared_ptr< crypto::SessionKeys > keys, const libp2p::crypto::KeyPair &libp2p_key, const libp2p::crypto::marshaller::KeyMarshaller &key_marshaller, std::shared_ptr< crypto::Ed25519Provider > ed_crypto_provider, std::shared_ptr< crypto::Sr25519Provider > sr_crypto_provider, libp2p::Host &host, std::shared_ptr< libp2p::protocol::kademlia::Kademlia > kademlia, std::shared_ptr< libp2p::basic::Scheduler > scheduler) | |
bool | start () |
outcome::result< void > | publishOwnAddress () |
Private Attributes | |
std::shared_ptr< runtime::AuthorityDiscoveryApi > | authority_discovery_api_ |
network::Roles | roles_ |
std::shared_ptr< blockchain::BlockTree > | block_tree_ |
std::shared_ptr< crypto::SessionKeys > | keys_ |
std::shared_ptr< crypto::Ed25519Provider > | ed_crypto_provider_ |
std::shared_ptr< crypto::Sr25519Provider > | sr_crypto_provider_ |
libp2p::Host & | host_ |
std::shared_ptr< libp2p::protocol::kademlia::Kademlia > | kademlia_ |
std::shared_ptr< libp2p::basic::Scheduler > | scheduler_ |
log::Logger | log_ |
std::optional< crypto::Ed25519Keypair > | libp2p_key_ |
std::optional< libp2p::crypto::ProtobufKey > | libp2p_key_pb_ |
Publishes listening addresses for authority discovery. Authority discovery public key is used for Kademlia DHT key.
Definition at line 27 of file address_publisher.hpp.
kagome::authority_discovery::AddressPublisher::AddressPublisher | ( | std::shared_ptr< runtime::AuthorityDiscoveryApi > | authority_discovery_api, |
network::Roles | roles, | ||
std::shared_ptr< application::AppStateManager > | app_state_manager, | ||
std::shared_ptr< blockchain::BlockTree > | block_tree, | ||
std::shared_ptr< crypto::SessionKeys > | keys, | ||
const libp2p::crypto::KeyPair & | libp2p_key, | ||
const libp2p::crypto::marshaller::KeyMarshaller & | key_marshaller, | ||
std::shared_ptr< crypto::Ed25519Provider > | ed_crypto_provider, | ||
std::shared_ptr< crypto::Sr25519Provider > | sr_crypto_provider, | ||
libp2p::Host & | host, | ||
std::shared_ptr< libp2p::protocol::kademlia::Kademlia > | kademlia, | ||
std::shared_ptr< libp2p::basic::Scheduler > | scheduler | ||
) |
Definition at line 24 of file address_publisher.cpp.
outcome::result< void > kagome::authority_discovery::AddressPublisher::publishOwnAddress | ( | ) |
Definition at line 87 of file address_publisher.cpp.
bool kagome::authority_discovery::AddressPublisher::start | ( | ) |
Definition at line 72 of file address_publisher.cpp.
|
private |
Definition at line 49 of file address_publisher.hpp.
|
private |
Definition at line 51 of file address_publisher.hpp.
|
private |
Definition at line 55 of file address_publisher.hpp.
|
private |
Definition at line 58 of file address_publisher.hpp.
|
private |
Definition at line 59 of file address_publisher.hpp.
|
private |
Definition at line 53 of file address_publisher.hpp.
|
private |
Definition at line 65 of file address_publisher.hpp.
|
private |
Definition at line 66 of file address_publisher.hpp.
|
private |
Definition at line 63 of file address_publisher.hpp.
|
private |
Definition at line 50 of file address_publisher.hpp.
|
private |
Definition at line 61 of file address_publisher.hpp.
|
private |
Definition at line 56 of file address_publisher.hpp.