Skip to content

Commit 4639365

Browse files
committed
cleanup
1 parent acb3d42 commit 4639365

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bin/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async fn main() -> eyre::Result<()> {
6060
let sim_cache_jh =
6161
sim.clone().spawn_cache_handler(tx_receiver, bundle_receiver, sim_items.clone());
6262

63-
let build_jh = sim.clone().spawn_builder_task(constants, sim_items.clone(), submit_channel);
63+
let build_jh = sim.clone().spawn_simulator_task(constants, sim_items.clone(), submit_channel);
6464

6565
let port = config.builder_port;
6666
let server = serve_builder_with_span(([0, 0, 0, 0], port), span);

src/tasks/block.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ impl Simulator {
130130
})
131131
}
132132

133-
/// Spawns the block building task.
133+
/// Spawns the simulator task, which handles the setup and sets the deadline
134+
/// for the each round of simulation.
134135
///
135136
/// # Arguments
136137
/// - `constants`: The system constants for the rollup.
@@ -139,7 +140,7 @@ impl Simulator {
139140
///
140141
/// # Returns
141142
/// A `JoinHandle` for the spawned task.
142-
pub fn spawn_builder_task(
143+
pub fn spawn_simulator_task(
143144
self: Arc<Self>,
144145
constants: SignetSystemConstants,
145146
cache: SimCache,

tests/block_builder_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ mod tests {
116116
sim.clone().spawn_cache_handler(tx_receiver, bundle_receiver, sim_cache.clone());
117117

118118
// Finally, Kick off the block builder task.
119-
sim.clone().spawn_builder_task(constants, sim_cache.clone(), block_sender);
119+
sim.clone().spawn_simulator_task(constants, sim_cache.clone(), block_sender);
120120

121121
// Feed in transactions to the tx_sender and wait for the block to be simulated
122122
let tx_1 = new_signed_tx(&test_key_0, 0, U256::from(1_f64), 11_000).unwrap();

0 commit comments

Comments
 (0)