Expand description
Structs§
- Service
- Service to interact with the
crate::Worker. - Worker
- An authority discovery
Workercan 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
Workercan run as.
Traits§
- Authority
Discovery - Wrapper for
AuthorityDiscoveryApi. Can be be implemented by any struct without dependency on the runtime. - Network
Provider - NetworkProvider provides
Workerwith all necessary hooks into the underlying Substrate networking. Using this trait abstraction instead ofsc_network::NetworkServicedirectly is necessary to unit testWorker.
Functions§
- new_
worker_ and_ service - Create a new authority discovery
WorkerandService. - new_
worker_ and_ service_ with_ config - Same as
new_worker_and_servicebut with support for providing theconfig.