diff --git a/crates/services/gas_price_service/simulation/src/main.rs b/crates/services/gas_price_service/simulation/src/main.rs index 3508615e891..558867d87e6 100644 --- a/crates/services/gas_price_service/simulation/src/main.rs +++ b/crates/services/gas_price_service/simulation/src/main.rs @@ -33,9 +33,12 @@ async fn simulation( ) -> anyhow::Result { let res = SimulationResults {}; for (block, maybe_costs) in data.get_iter() { - service_controller - .advance_one_l2_block(block, maybe_costs) - .await? + service_controller.advance(block, maybe_costs).await? + // GET GAS PRICE + + // MODIFY WITH GAS PRICE FACTOR + + // RECORD LATEST VALUES } Ok(res) } diff --git a/crates/services/gas_price_service/simulation/src/service.rs b/crates/services/gas_price_service/simulation/src/service.rs index c0a79cfc224..c9856688771 100644 --- a/crates/services/gas_price_service/simulation/src/service.rs +++ b/crates/services/gas_price_service/simulation/src/service.rs @@ -105,7 +105,7 @@ pub struct ServiceController { } impl ServiceController { - pub async fn advance_one_l2_block( + pub async fn advance( &mut self, l2_block: BlockInfo, da_costs: Option,