Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 22, 2024
1 parent 3d9fb9d commit 6366d40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/vectorx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ trait Operator {
return;
}

info!("Requesting step to block: {:?}.", block_to_step_to.unwrap());

// Request the header range proof to block_to_step_to.
match self
.request_header_range(
Expand All @@ -314,8 +316,6 @@ trait Operator {
};
}
async fn run(&mut self) {
info!("Starting VectorX offchain worker");

let config = self.get_config();
let provider = self.get_provider();

Expand Down Expand Up @@ -679,9 +679,11 @@ async fn main() {
let is_dummy_operator = env::var("IS_DUMMY_OPERATOR");
// Optional flag, if set to true, will use the dummy operator.
if is_dummy_operator.is_ok() && is_dummy_operator.unwrap().parse::<bool>().unwrap() {
info!("Starting dummy VectorX operator!");
let mut operator = DummyVectorXOperator::new(data_fetcher);
operator.run().await;
} else {
info!("Starting VectorX operator!");
let mut operator = VectorXOperator::new(data_fetcher);
operator.run().await;
}
Expand Down

0 comments on commit 6366d40

Please sign in to comment.