Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions bin/citrea/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,17 +371,16 @@ where

start_rpc_server(rollup_config.rpc.clone(), &task_executor, rpc_module, None);

let l1_start_height = match ledger_db.get_last_scanned_l1_height()? {
Some(l1_height) => l1_height.0,
None => {
rollup_config
let l1_start_height =
match ledger_db.get_last_scanned_l1_height()? {
Some(l1_height) => l1_height.0 + 1,
None => rollup_config
.runner
.ok_or(anyhow!(
"Failed to start batch prover L1 block handler: Runner config not present"
))?
.scan_l1_start_height
}
};
.context(
"Failed to start full node L1 block handler: Runner config not present",
)?
.scan_l1_start_height,
};

task_executor.spawn_critical_with_graceful_shutdown_signal(
"FullNodeL1BlockHandler",
Expand Down
Loading