Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

patch(node/conductor): patch conductor bootstrap#2589

Merged
theochap merged 3 commits intomainfrom
theo/patch-sync-status
Jul 30, 2025
Merged

patch(node/conductor): patch conductor bootstrap#2589
theochap merged 3 commits intomainfrom
theo/patch-sync-status

Conversation

@theochap
Copy link
Member

Description

Close #2571

Copilot AI review requested due to automatic review settings July 29, 2025 23:13
@theochap theochap self-assigned this Jul 29, 2025
@theochap theochap added K-feature Kind: feature A-node Area: cl node (eq. Go op-node) handles single-chain consensus A-sequencer Area: sequencer labels Jul 29, 2025
@theochap theochap added K-fix Kind: fix and removed K-feature Kind: feature labels Jul 29, 2025
@theochap theochap moved this to In Review in Project Tracking Jul 29, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the sync start RPC functionality for the node conductor by addressing an issue where the engine unsafe head was zeroed out before syncing. The fix retrieves the unsafe head from the L1 safe head when the node hasn't synced yet and isn't connected to an external sequencer.

Key changes:

  • Added logic to detect and handle zeroed unsafe head in engine queries
  • Created a new constructor for EngineSyncState to facilitate state updates
  • Added a new test configuration for conductor functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
crates/node/engine/src/query.rs Added sync start fix by checking for zeroed unsafe head and retrieving forkchoice state from L1
crates/node/engine/src/state/core.rs Added new constructor for EngineSyncState to support state initialization
tests/devnets/first-kona-conductor.yaml Added new test configuration for conductor functionality with multiple sequencers
.github/workflows/e2e_tests.yaml Added the new conductor test configuration to the CI pipeline
Comments suppressed due to low confidence (1)

crates/node/engine/src/query.rs:92

  • [nitpick] The field name un_safe is inconsistent with typical Rust naming conventions. Consider using unsafe_head or unsafe_block for clarity.
                forkchoice_state.un_safe,

@codecov
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.5%. Comparing base (4f7faf4) to head (e4cb236).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@clabby clabby force-pushed the theo/patch-sync-status branch from 4062ea7 to ba4eaf2 Compare July 30, 2025 21:29
## Overview

Allows for the sequencer to catch up by building the next block
immediately if the next L2 block timestamp is > the block time away from
the system time.
@theochap theochap force-pushed the theo/patch-sync-status branch from 9bf4ade to bbbb151 Compare July 30, 2025 21:50
@theochap theochap force-pushed the theo/patch-sync-status branch from bbbb151 to e4cb236 Compare July 30, 2025 21:50
@theochap theochap changed the title patch(node/conductor): fix sync start rpc patch(node/conductor): patch conductor bootstrap Jul 30, 2025
@clabby clabby enabled auto-merge July 30, 2025 21:57
@theochap theochap disabled auto-merge July 30, 2025 21:58
@theochap theochap enabled auto-merge July 30, 2025 22:01
@theochap theochap added this pull request to the merge queue Jul 30, 2025
Merged via the queue into main with commit 48b03ad Jul 30, 2025
31 checks passed
@theochap theochap deleted the theo/patch-sync-status branch July 30, 2025 22:14
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Jul 30, 2025
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
## Description

Close op-rs/kona#2571

---------

Co-authored-by: clabby <ben@clab.by>
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
## Description

Close #2571

---------

Co-authored-by: clabby <ben@clab.by>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-node Area: cl node (eq. Go op-node) handles single-chain consensus A-sequencer Area: sequencer K-fix Kind: fix

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(node/service): Support conductor bootstrap

3 participants