Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Braun committed Feb 16, 2023
1 parent c622100 commit e05feeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/light-client-relayer/src/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ pub trait LightClientPoller {
.await
.expect("Error on contract initialization");

// We removed the sleep (30s) from the end of the init_pallet function. In its place,
// we sleep here for 1/10th the time (for now)
tokio::time::sleep(std::time::Duration::from_millis(3000)).await;
// Step 2: init relay
let submit_only_finalized_blocks = true;
let mut relay = eth2_to_substrate_relay::eth2substrate_relay::Eth2SubstrateRelay::init(&config, Box::new(eth_client_contract), true, submit_only_finalized_blocks).await;
let enable_binsearch = true;
let mut relay = eth2_to_substrate_relay::eth2substrate_relay::Eth2SubstrateRelay::init(&config, Box::new(eth_client_contract), enable_binsearch, submit_only_finalized_blocks).await;

// Step 3: run relay
relay.run(None).await;
Expand Down

0 comments on commit e05feeb

Please sign in to comment.