Skip to content

feat: schedule Fulu fork for Gnosis mainnet#9074

Merged
nflaig merged 2 commits intoChainSafe:unstablefrom
dapplion:gnosis-fulu-mainnet
Mar 20, 2026
Merged

feat: schedule Fulu fork for Gnosis mainnet#9074
nflaig merged 2 commits intoChainSafe:unstablefrom
dapplion:gnosis-fulu-mainnet

Conversation

@dapplion
Copy link
Copy Markdown
Contributor

Schedule Fulu fork for Gnosis mainnet.

  • Epoch: 1714688
  • Timestamp: 1776168380
  • UTC: Tue Apr 14 2026 12:06:20

Matches: gnosischain/configs#50, gnosischain/specs#92

Epoch: 1714688, Slot: 27435008
UTC: Tue Apr 14 2026 12:06:20
@dapplion dapplion requested a review from a team as a code owner March 20, 2026 16:10
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 configures the Fulu hard fork for the Gnosis mainnet by updating its activation epoch and timestamp. This change is crucial for preparing the network for the upcoming protocol upgrade, ensuring all nodes are aligned for the scheduled fork.

Highlights

  • Fulu Fork Scheduling: The Fulu hard fork for Gnosis mainnet has been officially scheduled by setting its activation epoch to 1714688 and its corresponding timestamp to April 14, 2026.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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.

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
Copy Markdown
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 schedules the Fulu fork for the Gnosis mainnet by setting the FULU_FORK_EPOCH. The change is functionally correct. I have added one comment to improve code consistency by aligning the date format in the code comment with the existing format in the file.

@nflaig nflaig changed the title Schedule Fulu fork for Gnosis mainnet feat: schedule Fulu fork for Gnosis mainnet Mar 20, 2026
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@nflaig nflaig enabled auto-merge (squash) March 20, 2026 16:14
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7f52355af

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

// Fulu
FULU_FORK_VERSION: b("0x06000064"),
FULU_FORK_EPOCH: Infinity,
FULU_FORK_EPOCH: 1714688, // Tue Apr 14 2026 12:06:20 GMT+0000
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Override Gnosis data-column retention before enabling Fulu

Once FULU_FORK_EPOCH becomes finite here, Gnosis starts using MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS in the Fulu request/pruning paths (packages/beacon-node/src/network/reqresp/handlers/dataColumnSidecarsByRoot.ts:22-27 and packages/beacon-node/src/chain/archiveStore/utils/archiveBlocks.ts:187-195). This network file still inherits mainnet’s 4096 from packages/config/src/chainConfig/configs/mainnet.ts:181, but the Gnosis config schedules 16384; on Gnosis’s 16-slot epochs that cuts the required retention window from about 15 days to about 3.8 days, so post-fork nodes will prune/refuse older data columns much earlier than other clients.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch — this is a real issue. Gnosis's official config specifies MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 16384 (source), but we inherit mainnet's 4096. With Gnosis's 5s slots and 16 slots/epoch, that cuts the retention window from ~15 days to ~3.7 days.

Opened #9075 to fix this.

@nflaig nflaig merged commit f6213da into ChainSafe:unstable Mar 20, 2026
19 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.28%. Comparing base (4411584) to head (ac5ae0c).
⚠️ Report is 2 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #9074   +/-   ##
=========================================
  Coverage     52.28%   52.28%           
=========================================
  Files           848      848           
  Lines         62165    62165           
  Branches       4544     4544           
=========================================
  Hits          32503    32503           
  Misses        29597    29597           
  Partials         65       65           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

nflaig pushed a commit that referenced this pull request Mar 20, 2026
…#9075)

## Problem

The Gnosis chain config inherits mainnet's
`MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 4096`, but the [official
Gnosis
config](https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml)
specifies `16384`.

With Gnosis's faster block times (5s slots, 16 slots/epoch), this
drastically shortens the data column retention window:

| Config | Epochs | Retention |
|--------|--------|-----------|
| Mainnet (4096 × 32 slots × 12s) | 4096 | **~18.2 days** |
| Gnosis with wrong 4096 (4096 × 16 slots × 5s) | 4096 | **~3.7 days** ❌
|
| Gnosis with correct 16384 (16384 × 16 slots × 5s) | 16384 | **~15.2
days** ✅ |

### Impact (once Fulu activates on Gnosis)

1. **Premature pruning**: Lodestar prunes data columns after ~3.7 days
instead of ~15 days
2. **Refuses serving**: `DataColumnSidecarsByRoot` handler rejects
requests for columns older than ~3.7 days
(`packages/beacon-node/src/network/reqresp/handlers/dataColumnSidecarsByRoot.ts:22-27`)
3. **Archive pruning**: Block archiver prunes data column sidecars too
aggressively
(`packages/beacon-node/src/chain/archiveStore/utils/archiveBlocks.ts:171-195`)
4. **Interop mismatch**: Other clients using the correct 16384 would
retain data for ~15 days, causing Lodestar to diverge from the network

### Evidence

- Official Gnosis config:
[`MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS:
16384`](https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml)
- The existing `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 16384` override
is already present in `gnosis.ts` (line 35) — this is the same pattern

## Fix

Add `MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 16384` to the Gnosis
chain config, matching the official Gnosis config and the existing blob
sidecars override.

Flagged by @chatgpt-codex-connector in
#9074 (comment)

Co-authored-by: lodekeeper <lodekeeper@users.noreply.github.com>
matthewkeil pushed a commit that referenced this pull request Apr 1, 2026
Schedule Fulu fork for Gnosis mainnet.

- Epoch: 1714688
- Timestamp: 1776168380
- UTC: Tue Apr 14 2026 12:06:20

Matches: gnosischain/configs#50, gnosischain/specs#92

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
matthewkeil pushed a commit that referenced this pull request Apr 1, 2026
…#9075)

## Problem

The Gnosis chain config inherits mainnet's
`MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 4096`, but the [official
Gnosis
config](https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml)
specifies `16384`.

With Gnosis's faster block times (5s slots, 16 slots/epoch), this
drastically shortens the data column retention window:

| Config | Epochs | Retention |
|--------|--------|-----------|
| Mainnet (4096 × 32 slots × 12s) | 4096 | **~18.2 days** |
| Gnosis with wrong 4096 (4096 × 16 slots × 5s) | 4096 | **~3.7 days** ❌
|
| Gnosis with correct 16384 (16384 × 16 slots × 5s) | 16384 | **~15.2
days** ✅ |

### Impact (once Fulu activates on Gnosis)

1. **Premature pruning**: Lodestar prunes data columns after ~3.7 days
instead of ~15 days
2. **Refuses serving**: `DataColumnSidecarsByRoot` handler rejects
requests for columns older than ~3.7 days
(`packages/beacon-node/src/network/reqresp/handlers/dataColumnSidecarsByRoot.ts:22-27`)
3. **Archive pruning**: Block archiver prunes data column sidecars too
aggressively
(`packages/beacon-node/src/chain/archiveStore/utils/archiveBlocks.ts:171-195`)
4. **Interop mismatch**: Other clients using the correct 16384 would
retain data for ~15 days, causing Lodestar to diverge from the network

### Evidence

- Official Gnosis config:
[`MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS:
16384`](https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml)
- The existing `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 16384` override
is already present in `gnosis.ts` (line 35) — this is the same pattern

## Fix

Add `MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 16384` to the Gnosis
chain config, matching the official Gnosis config and the existing blob
sidecars override.

Flagged by @chatgpt-codex-connector in
#9074 (comment)

Co-authored-by: lodekeeper <lodekeeper@users.noreply.github.com>
@wemeetagain
Copy link
Copy Markdown
Member

🎉 This PR is included in v1.41.1 🎉

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.

4 participants