Expand description
Structs§
- Service
- Service to interact with the
crate::Worker
. - Worker
- An authority discovery
Worker
can publish the local node’s addresses as well as discover those of other nodes via a Kademlia DHT. - Worker
Config - Configuration of
Worker
.
Enums§
- Error
- Error type for the authority discovery module.
- Role
- Role an authority discovery
Worker
can run as.
Traits§
- Authority
Discovery - Wrapper for
AuthorityDiscoveryApi
. Can be be implemented by any struct without dependency on the runtime. - Network
Provider - NetworkProvider provides
Worker
with all necessary hooks into the underlying Substrate networking. Using this trait abstraction instead ofsc_network::NetworkService
directly is necessary to unit testWorker
.
Functions§
- new_
worker_ and_ service - Create a new authority discovery
Worker
andService
. - new_
worker_ and_ service_ with_ config - Same as
new_worker_and_service
but with support for providing theconfig
.