pub struct LightNodeConfig {
pub trust_threshold: TrustThreshold,
pub trusting_period: Duration,
pub clock_drift: Duration,
pub rpc_config: RpcConfig,
pub light_clients: Vec<LightClientConfig>,
}Expand description
LightNode Configuration
Fields§
§trust_threshold: TrustThresholdThe 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: DurationThe duration until we consider a trusted state as expired.
clock_drift: DurationCorrection parameter dealing with only approximately synchronized clocks.
rpc_config: RpcConfigRPC 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§
Source§impl Clone for LightNodeConfig
impl Clone for LightNodeConfig
Source§fn clone(&self) -> LightNodeConfig
fn clone(&self) -> LightNodeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Configurable<LightNodeConfig> for LightNodeCmd
This trait allows you to define how application configuration is loaded.
impl Configurable<LightNodeConfig> for LightNodeCmd
This trait allows you to define how application configuration is loaded.
Source§fn config_path(&self) -> Option<PathBuf>
fn config_path(&self) -> Option<PathBuf>
Location of the configuration file
Source§fn process_config(
&self,
config: LightNodeConfig,
) -> Result<LightNodeConfig, FrameworkError>
fn process_config( &self, config: LightNodeConfig, ) -> Result<LightNodeConfig, FrameworkError>
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.
Source§impl Debug for LightNodeConfig
impl Debug for LightNodeConfig
Source§impl Default for LightNodeConfig
Default configuration settings.
impl Default for LightNodeConfig
Default configuration settings.