Skip to content

Commit

Permalink
fix: defaulted l1 gas price in devnet mode (madara-alliance#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiyro authored Sep 16, 2024
1 parent 4aa6b42 commit 0ac1f62
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
uses: coverallsapp/github-action@v2
with:
files: lcov.info
debug: true
debug: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- 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 0ac1f62

Please sign in to comment.