Skip to content

Commit

Permalink
Merge branch 'main' into fix/random_key
Browse files Browse the repository at this point in the history
  • Loading branch information
antiyro authored Sep 16, 2024
2 parents 6bb64ce + 0ac1f62 commit 93fd659
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Next release

- fix: generate a fixed set of public and private keys for devnet
- fix: defaulted l1 gas price in devnet mode
- fix: fixed anvil port value in tests
- ci: add coveralls report
- test: added tests for declare and deploy transactions
Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/cli/l1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct L1SyncParams {
pub sync_l1_disabled: bool,

/// The L1 rpc endpoint url for state verification.
#[clap(long, value_parser = parse_url, value_name = "ETHEREUM RPC URL", required_unless_present = "sync_l1_disabled")]
#[clap(long, value_parser = parse_url, value_name = "ETHEREUM RPC URL")]
pub l1_endpoint: Option<Url>,

/// Disable the gas price sync service. The sync service is responsible to fetch the fee history from the ethereum.
Expand Down
4 changes: 4 additions & 0 deletions crates/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ async fn main() -> anyhow::Result<()> {

let l1_gas_setter = GasPriceProvider::new();
let l1_data_provider: Arc<dyn L1DataProvider> = Arc::new(l1_gas_setter.clone());
if run_cmd.block_production_params.devnet {
run_cmd.l1_sync_params.sync_l1_disabled = true;
run_cmd.l1_sync_params.gas_price_sync_disabled = true;
}

let l1_service = L1SyncService::new(
&run_cmd.l1_sync_params,
Expand Down

0 comments on commit 93fd659

Please sign in to comment.