File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,6 @@ pub struct BuilderConfig {
188188 /// The slot calculator for the builder.
189189 pub slot_calculator : SlotCalculator ,
190190
191- // TODO: Make this compatible with FromEnv again, somehow it broke
192191 /// The signet system constants.
193192 pub constants : SignetSystemConstants ,
194193}
Original file line number Diff line number Diff line change @@ -131,19 +131,17 @@ impl Simulator {
131131 block_env : BlockEnv ,
132132 ) -> eyre:: Result < BuiltBlock > {
133133 let concurrency_limit = self . config . concurrency_limit ( ) ;
134-
135134 // NB: Build AlloyDB from the previous block number's state, since block_env maps to the in-progress block
136135 let latest_block_number = BlockNumber :: from ( block_env. number . to :: < u64 > ( ) - 1 ) ;
137136
138- let max_host_gas = 45_000_000u64 ;
139-
140137 let host_db = self . create_host_db ( latest_block_number) . await ;
141138 let host_env = HostEnv :: < _ , NoOpInspector > :: new (
142139 host_db,
143140 constants. clone ( ) ,
144141 & self . config . cfg_env ( ) ,
145142 & block_env,
146143 ) ;
144+
147145 let rollup_db = self . create_rollup_db ( latest_block_number) ;
148146 let rollup_env = RollupEnv :: < _ , NoOpInspector > :: new (
149147 rollup_db,
@@ -159,7 +157,7 @@ impl Simulator {
159157 concurrency_limit,
160158 sim_items,
161159 self . config . rollup_block_gas_limit ,
162- max_host_gas ,
160+ block_env . gas_limit ,
163161 ) ;
164162
165163 let built_block = block_build. build ( ) . in_current_span ( ) . await ;
@@ -283,10 +281,6 @@ impl Simulator {
283281 }
284282
285283 /// Creates an `AlloyDB` instance from the rollup provider.
286- ///
287- /// # Returns
288- ///
289- /// An `Option` containing the wrapped database or `None` if an error occurs.
290284 fn create_rollup_db ( & self , latest_block_number : u64 ) -> RollupAlloyDatabaseProvider {
291285 // Make an AlloyDB instance from the rollup provider with that latest block number
292286 let alloy_db: AlloyDB < Ethereum , RuProvider > =
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl EnvTask {
6565 pub const fn new (
6666 config : BuilderConfig ,
6767 host_provider : HostProvider ,
68- ru_provider : RuProvider ,
68+ ru_provider : RuProvider ,
6969 ) -> Self {
7070 Self { config, host_provider, ru_provider }
7171 }
You can’t perform that action at this time.
0 commit comments