Skip to content

docs: use patched Erigon v3.3.0 image for Linea from-scratch sync - #1652

Open
Othryades wants to merge 4 commits into
mainfrom
chore/erigon-linea-patched-image
Open

docs: use patched Erigon v3.3.0 image for Linea from-scratch sync#1652
Othryades wants to merge 4 commits into
mainfrom
chore/erigon-linea-patched-image

Conversation

@Othryades

@Othryades Othryades commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Updates the Erigon page to instruct users to build the patched linea-erigon:v3.3.0-linea-patched image locally from the Dockerfile shipped in the lineth-monorepo, instead of building from the #20298 merge commit.
  • Documents why stock Erigon does not sync current Linea from scratch and the three patches the image applies.
  • Updates the binary distribution alternative to build from Erigon v3.3.0 with the same three patches.
  • Updates the run-a-node index/overview page (table cell + quickstart note) to drop the stale "Linea support merge commit" / "v3.5 or later" framing and point operators to the patched image.

Why

Stock Erigon does not sync current Linea from scratch:

The patched image applies three fixes on top of Erigon v3.3.0:

  • sentryMcDisableBlockDownload = false (enables EL-driven bootstrap from genesis)
  • EIP-7002 empty-code syscall returns nil instead of erroring (Fusaka fix)
  • EIP-7251 empty-code syscall returns nil instead of erroring (Fusaka fix)

Test plan

  • Build the image: make build from lineth-monorepo/docs/getting-started/linea-mainnet/erigon-linea/
  • Follow the updated Docker steps on the Erigon page; confirm docker compose up erigon-init erigon-node maru-node begins syncing
  • Confirm the binary alternative builds with the three sed patches

Note

Low Risk
Documentation and navigation-only changes with no runtime or application code impact.

Overview
Erigon run-a-node guidance no longer tells operators to build from upstream PR #20298 or wait for Erigon v3.5. It now states that stock Erigon cannot sync current Linea from genesis, cites #22081 and #18160, and documents the linea-erigon:v3.3.0-linea-patched image built from lineth-monorepo/docs/getting-started/linea-mainnet/erigon-linea/ with three named fixes (EL block download, EIP-7002/7251 empty-code syscalls).

The Docker flow is simplified: build via make build (optional PLATFORM=linux/arm64), drop manual compose image/datadir/genesis copy steps, and start erigon-init, erigon-node, and maru-node together with a short note on --externalcl and bootstrap behavior. The binary path mirrors the same three sed patches on Erigon v3.3.0.

The run-a-node index table and quickstart call out the patched image requirement instead of a pending v3.5 release. sidebars.js reorders the How-to section (e.g. Run a node moved up; recover-state / assertions repositioned).

Reviewed by Cursor Bugbot for commit ccbfafe. Bugbot is set up for automated code reviews on this repo. Configure here.

Stock Erigon does not sync current Linea from scratch: v3.5.0 hangs at
block 0 with --externalcl + Maru (erigontech/erigon#22081), and earlier
versions hit [EIP-7002] Syscall failure: Empty Code at the Fusaka fork
(erigontech/erigon#18160).

Update the Erigon page to instruct users to build the patched
linea-erigon:v3.3.0-linea-patched image locally from the Dockerfile in
the lineth-monorepo. Document the three patches the image applies and
the --externalcl + Maru runtime mode, and update the binary distribution
alternative to build from Erigon v3.3.0 with the same three patches.

Signed-off-by: Othryades <17912603+Othryades@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
doc-linea Ready Ready Preview Aug 3, 2026 9:23pm

Request Review

@Othryades
Othryades requested a review from alexandratran August 3, 2026 19:24
@Othryades Othryades self-assigned this Aug 3, 2026
@Othryades Othryades added the documentation Improvements or additions to documentation label Aug 3, 2026
The run-a-node index page still referenced the old "Linea support merge
commit" and "v3.5 or later" framing. Update both the table cell and the
Next actions note to reflect that stock Erigon does not sync current
Linea from scratch and operators should build the locally patched
linea-erigon:v3.3.0-linea-patched image.

Signed-off-by: Othryades <17912603+Othryades@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

This image is not published to a registry — you build it locally from the Dockerfile
shipped in the monorepo at
[`docs/getting-started/linea-mainnet/erigon-linea/`](https://github.com/LFDT-Lineth/lineth-monorepo/tree/main/docs/getting-started/linea-mainnet/erigon-linea)

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.

This link 404s, should it be a different link?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I forgot to mention, pending on the merge of LFDT-Lineth/lineth-monorepo#3698

Comment thread docs/network/how-to/run-a-node/index.mdx Outdated
Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants