Skip to content

Conversation

@julienrbrt
Copy link
Member

Overview

@github-actions
Copy link
Contributor

The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedDec 12, 2025, 4:05 PM

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @julienrbrt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors a critical state initialization check within the syncing mechanism. The modification addresses an edge case where a node's data availability height could be zero, which is a valid scenario for nodes starting from a sequencer. By loosening this check, the system avoids an unnecessary error, ensuring correct and robust state synchronization for various node configurations.

Highlights

  • DA Start Height Check: The validation logic for the data availability (DA) start height has been updated to specifically allow a state.DAHeight of 0. This change prevents an error from being thrown when a node, particularly one starting from a sequencer state, legitimately has a DA height of zero.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the syncer's state initialization to relax the check on the DA start height. The change allows state.DAHeight to be zero, which accommodates nodes starting from a sequencer state. The logic is sound. My review includes a minor suggestion to correct a typo in an inline comment to improve code clarity.

}
}
if state.DAHeight < s.genesis.DAStartHeight {
if state.DAHeight != 0 && state.DAHeight < s.genesis.DAStartHeight { // state.DaHeight can be 0 if the node starts from sequencer state
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's a typo in the comment. state.DaHeight should be state.DAHeight to match the field name in the code and improve clarity.

Suggested change
if state.DAHeight != 0 && state.DAHeight < s.genesis.DAStartHeight { // state.DaHeight can be 0 if the node starts from sequencer state
if state.DAHeight != 0 && state.DAHeight < s.genesis.DAStartHeight { // state.DAHeight can be 0 if the node starts from sequencer state

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 64.97%. Comparing base (d7eda60) to head (602aa31).
⚠️ Report is 1 commits behind head on hotfix-11.

Files with missing lines Patch % Lines
block/internal/syncing/syncer.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           hotfix-11    #2925   +/-   ##
==========================================
  Coverage      64.97%   64.97%           
==========================================
  Files             81       81           
  Lines           7250     7250           
==========================================
  Hits            4711     4711           
  Misses          1998     1998           
  Partials         541      541           
Flag Coverage Δ
combined 64.97% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tac0turtle added a commit that referenced this pull request Dec 15, 2025
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

NOTE: PR titles should follow semantic commits:
https://www.conventionalcommits.org/en/v1.0.0/
-->

## Overview

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 

Ex: Closes #<issue number>
-->

upstreams #2925 to main
@julienrbrt julienrbrt merged commit 388fa64 into hotfix-11 Dec 15, 2025
27 of 28 checks passed
@julienrbrt julienrbrt deleted the julien/less-sanity branch December 15, 2025 10:46
@julienrbrt
Copy link
Member Author

Merging this. We should not forget to tag to https://github.com/evstack/ev-node/tree/hotfix-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants