You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
Simplyfy configuration, we can divide config into three parts
LightClientRelayerConfig
BeaconChainConfig
TangleSubstrateConfig
and set default values for most of the values and just pass simple single configuration file
#[derive(Debug,Clone,Deserialize,Serialize,Default)]#[serde(rename_all(serialize = "camelCase", deserialize = "kebab-case"))]pubstructLightClientRelayerConfig{pubtangle_config:TangleSubstrateConfig,pubbeacon_chain_config:BeaconChainConfig,// endpoint for the Ethereum full node, which supports Eth1 RPC APIpubeth1_endpoint:String,pubget_light_client_update_by_epoch:Option<bool>,// the max number of headers submitted in one batch to eth clientpubheaders_batch_size:u32,}#[derive(Debug,Clone,Deserialize,Serialize,Default)]#[serde(rename_all(serialize = "camelCase", deserialize = "kebab-case"))]pubstructBeaconChainConfig{pubname:String,// Beacon http endpoint#[serde(skip_serializing)]pubhttp_endpoint:RpcUrl,// Beacon rpc version (V1_1, V1_2)pubbeacon_rpc_version:BeaconRPCVersion,// sleep time on syncpubsleep_time_on_sync_secs:u64,}#[derive(Debug,Clone,Deserialize,Serialize,Default)]#[serde(rename_all(serialize = "camelCase", deserialize = "kebab-case"))]pubstructTangleSubstrateConfig{/// String that groups configuration for this chain on a human-readable name.pubname:String,/// Websocket Endpoint for long living connections#[serde(skip_serializing)]pubws_endpoint:RpcUrl,#[serde(skip_serializing)]pubsuri:Option<Suri>,}
The text was updated successfully, but these errors were encountered:
Overview
Simplyfy configuration, we can divide config into three parts
and set default values for most of the values and just pass simple single configuration file
The text was updated successfully, but these errors were encountered: