From 6f8096cadbaad97d1551f9628f7206ee110e93f1 Mon Sep 17 00:00:00 2001 From: jfldde <168934971+jfldde@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:23:10 +0000 Subject: [PATCH 1/3] fix: L1 sync start height --- bin/citrea/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/citrea/src/main.rs b/bin/citrea/src/main.rs index cc9f2cdc79..bebee604c8 100644 --- a/bin/citrea/src/main.rs +++ b/bin/citrea/src/main.rs @@ -372,7 +372,7 @@ 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, + Some(l1_height) => l1_height.0 + 1, None => { rollup_config .runner From eb241fcef495586266d83a206e46d06d142a1526 Mon Sep 17 00:00:00 2001 From: jfldde <168934971+jfldde@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:37:18 +0000 Subject: [PATCH 2/3] Fix error message --- bin/citrea/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/citrea/src/main.rs b/bin/citrea/src/main.rs index bebee604c8..34cd8f910d 100644 --- a/bin/citrea/src/main.rs +++ b/bin/citrea/src/main.rs @@ -377,8 +377,8 @@ where rollup_config .runner .ok_or(anyhow!( - "Failed to start batch prover L1 block handler: Runner config not present" - ))? + "Failed to start full node L1 block handler: Runner config not present" + ))? .scan_l1_start_height } }; From ceb04b6e2178184bd62c031598fd065632e7b5a5 Mon Sep 17 00:00:00 2001 From: jfldde <168934971+jfldde@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:52:34 +0000 Subject: [PATCH 3/3] Cleanup anyhow usage --- bin/citrea/src/main.rs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/bin/citrea/src/main.rs b/bin/citrea/src/main.rs index 34cd8f910d..24b4431833 100644 --- a/bin/citrea/src/main.rs +++ b/bin/citrea/src/main.rs @@ -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 + 1, - 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 full node 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",