Skip to content

Commit

Permalink
Don't run commitment task in example rollup, now that we have a stand…
Browse files Browse the repository at this point in the history
…alone tool for it
  • Loading branch information
jbearer committed Sep 15, 2023
1 parent 14b5712 commit fc1616e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ pub struct Options {
#[clap(long, env = "ESPRESSO_DEMO_ROLLUP_MNEMONIC")]
pub rollup_mnemonic: String,

/// Index of a funded account derived from mnemonic, designating the
/// account that will send commitments to the HotShot contract
#[clap(long, env = "ESPRESSO_DEMO_HOTSHOT_ACCOUNT_INDEX", default_value = "0")]
pub hotshot_account_index: u32,

/// Index of a funded account derived from mnemonic, desginating the account
/// that will send proofs to the rollup contract
#[clap(long, env = "ESPRESSO_DEMO_ROLLUP_ACCOUNT_INDEX", default_value = "1")]
Expand Down
18 changes: 2 additions & 16 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use example_l2::{
use futures::join;
use rand::SeedableRng;
use rand_chacha::ChaChaRng;
use sequencer::hotshot_commitment::{run_hotshot_commitment_task, CommitmentTaskOptions};
use std::sync::Arc;
use strum::IntoEnumIterator;

Expand Down Expand Up @@ -52,15 +51,6 @@ async fn main() {
output_stream: None,
};

let hotshot_contract_options = CommitmentTaskOptions {
hotshot_address: opt.hotshot_address,
l1_chain_id: None,
l1_provider: opt.l1_provider.clone(),
sequencer_mnemonic: opt.rollup_mnemonic,
sequencer_account_index: opt.hotshot_account_index,
query_service_url: Some(opt.sequencer_url),
};

let serve_api = async {
serve(&api_options, state.clone()).await.unwrap();
};
Expand All @@ -74,10 +64,6 @@ async fn main() {
.unwrap();
deploy_example_contract(&test_system, initial_state).await;

tracing::info!("Launching Example Rollup API, Executor, and HotShot commitment task..");
join!(
run_executor(&executor_options, state.clone()),
run_hotshot_commitment_task(&hotshot_contract_options),
serve_api,
);
tracing::info!("Launching Example Rollup API and Executor");
join!(run_executor(&executor_options, state.clone()), serve_api,);
}

0 comments on commit fc1616e

Please sign in to comment.