Skip to content

Commit

Permalink
1h bc node not synced
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Nov 27, 2024
1 parent c2438a6 commit c690b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/utils/bin/cost_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use std::{
pub const MULTI_BLOCK_ELF: &[u8] = include_bytes!("../../../elf/range-elf");

const TWO_WEEKS: Duration = Duration::from_secs(14 * 24 * 60 * 60);
const ONE_HOUR: Duration = Duration::from_secs(60 * 60);

/// The arguments for the host executable.
#[derive(Debug, Clone, Parser)]
Expand Down Expand Up @@ -276,7 +277,7 @@ async fn main() -> Result<()> {

const DEFAULT_RANGE: u64 = 5;
let (l2_start_block, l2_end_block) = if args.rolling {
get_rolling_block_range(&data_fetcher, TWO_WEEKS, DEFAULT_RANGE).await?
get_rolling_block_range(&data_fetcher, ONE_HOUR, DEFAULT_RANGE).await?
} else {
get_validated_block_range(&data_fetcher, args.start, args.end, DEFAULT_RANGE).await?
};
Expand Down

0 comments on commit c690b65

Please sign in to comment.