[][src]Struct tendermint_light_node::config::LightNodeConfig

pub struct LightNodeConfig {
    pub trust_threshold: TrustThreshold,
    pub trusting_period: Duration,
    pub clock_drift: Duration,
    pub rpc_config: RpcConfig,
    pub light_clients: Vec<LightClientConfig>,
}

LightNode Configuration

Fields

trust_threshold: TrustThreshold

The fraction of the total voting power of a known and trusted validator set is sufficient for a commit to be accepted going forward.

trusting_period: Duration

The duration until we consider a trusted state as expired.

clock_drift: Duration

Correction parameter dealing with only approximately synchronized clocks.

rpc_config: RpcConfig

RPC related config parameters.

light_clients: Vec<LightClientConfig>

The actual light client instances' configuration. Note: the first config will be used in the subjectively initialize the light node in the initialize subcommand.

Trait Implementations

impl Clone for LightNodeConfig[src]

impl Configurable<LightNodeConfig> for LightNodeCmd[src]

This trait allows you to define how application configuration is loaded.

fn config_path(&self) -> Option<PathBuf>[src]

Location of the configuration file

fn process_config(
    &self,
    config: LightNodeConfig
) -> Result<LightNodeConfig, FrameworkError>
[src]

Apply changes to the config after it's been loaded, e.g. overriding values in a config file using command-line options.

This can be safely deleted if you don't want to override config settings from command-line options.

impl Debug for LightNodeConfig[src]

impl Default for LightNodeConfig[src]

Default configuration settings.

impl<'de> Deserialize<'de> for LightNodeConfig[src]

impl From<LightNodeConfig> for Options[src]

impl Serialize for LightNodeConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<C> Config for C where
    C: Debug + Default + DeserializeOwned
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,