Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Feb 23, 2023
1 parent e05feeb commit 4c4a797
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions services/light-client-relayer/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ verify_bls_signature = true
hashes_gc_threshold = 51000
max_submitted_blocks_by_account = 8000
beacon_rpc_version = "V1_2"
headers_batch_size = 16
substrate_network_name = "Tangle Test Network"
interval_between_light_client_updates_submission_in_epochs = 1
max_blocks_for_finalization = 1000
state_requests_timeout_seconds = 1000
sleep_time_on_sync_secs = 0
sleep_time_after_submission_secs = 5
3 changes: 2 additions & 1 deletion services/light-client-relayer/src/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub trait LightClientPoller {
}

// read the path
tracing::debug!("Reading path to suri...");
let path_to_suri = &config.path_to_signer_secret_key;
let suri = std::fs::read_to_string(path_to_suri)?;
let suri = suri.trim();
Expand All @@ -88,7 +89,7 @@ pub trait LightClientPoller {
.map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, format!("{err:?}")))?;

// Step 1: init pallet

tracing::debug!("Initializing pallet...");
init_pallet(&config.clone().into(), &mut eth_client_contract)
.await
.expect("Error on contract initialization");
Expand Down

0 comments on commit 4c4a797

Please sign in to comment.