Struct sc_authority_discovery::WorkerConfig
source · pub struct WorkerConfig {
pub max_publish_interval: Duration,
pub keystore_refresh_interval: Duration,
pub max_query_interval: Duration,
pub publish_non_global_ips: bool,
pub strict_record_validation: bool,
}
Expand description
Configuration of Worker
.
Fields§
§max_publish_interval: Duration
The maximum interval in which the node will publish its own address on the DHT.
By default this is set to 1 hour.
keystore_refresh_interval: Duration
Interval at which the keystore is queried. If the keys have changed, unconditionally re-publish its addresses on the DHT.
By default this is set to 1 minute.
max_query_interval: Duration
The maximum interval in which the node will query the DHT for new entries.
By default this is set to 10 minutes.
publish_non_global_ips: bool
If false
, the node won’t publish on the DHT multiaddresses that contain non-global
IP addresses (such as 10.0.0.1).
Recommended: false
for live chains, and true
for local chains or for testing.
Defaults to true
to avoid the surprise factor.
strict_record_validation: bool
Reject authority discovery records that are not signed by their network identity (PeerId)
Defaults to false
to provide compatibility with old versions
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WorkerConfig
impl Send for WorkerConfig
impl Sync for WorkerConfig
impl Unpin for WorkerConfig
impl UnwindSafe for WorkerConfig
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.