Skip to content

Commit

Permalink
fix: misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 27, 2024
1 parent ff10a73 commit c2438a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions configs/11155420/rollup.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"ecotone_time": 1708534800,
"fjord_time": 1716998400,
"granite_time": 1723478400,
"holocene_time": 1732633200,
"batch_inbox_address": "0xff00000000000000000000000000000011155420",
"deposit_contract_address": "0x16fc5058f25648194471939df75cf27a2fdc48bc",
"l1_system_config_address": "0x034edd2a225f7f429a63e0f1d2084b9e0a93b538",
Expand Down
8 changes: 3 additions & 5 deletions scripts/prove/bin/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use op_succinct_host_utils::{
};
use op_succinct_prove::{execute_multi, generate_witness, DEFAULT_RANGE, MULTI_BLOCK_ELF};
use sp1_sdk::{utils, ProverClient};
use std::{fs, time::Duration};
use std::{fs, path::PathBuf, time::Duration};

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
Expand All @@ -36,17 +36,15 @@ struct Args {

/// Env file.
#[arg(long, default_value = ".env")]
env_file: Option<String>,
env_file: PathBuf,
}

/// Execute the OP Succinct program for multiple blocks.
#[tokio::main]
async fn main() -> Result<()> {
let args = Args::parse();

if let Some(env_file) = args.env_file {
dotenv::from_filename(env_file).ok();
}
dotenv::from_path(&args.env_file)?;
utils::setup_logger();

let data_fetcher = OPSuccinctDataFetcher::new_with_rollup_config().await?;
Expand Down
2 changes: 1 addition & 1 deletion utils/host/src/block_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub async fn get_validated_block_range(
// If start block not provided, use end block - default_range
let l2_start_block = match start {
Some(start) => start,
None => l2_end_block.saturating_sub(default_range),
None => l2_end_block - default_range
};

if l2_start_block >= l2_end_block {
Expand Down

0 comments on commit c2438a6

Please sign in to comment.