EVM: Set FinalizedHash correctly in `forkChoiceUpdatedV3` call in ExecuteTxs

Open
#2,402 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@tac0turtle is already working on this.

Since Sep 3, 2026.

  • #3446 by @tac0turtle — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
blockchain

Research direction

Start in the ExecuteTxs EVM implementation at the first forkChoiceUpdatedV3 call, then read PR 2394 and the Rollkit Store and engineClient startup paths mentioned in the issue. Determine whether finalized state should come from DA Included Height or persisted hashes, and define the startup sanity checks for head, safe, and finalized hashes. Done means restarts and indexers receive consistent block hashes.

Written by the indexing model from the issue text.

Description

C:evm T:code-hygiene

In https://github.com/rollkit/rollkit/pull/2394, in order to have sequencer restarts work well, we modified the first call to forkChoiceUpdatedV3 in the ExecuteTxs EVM implementation to assign the previous block hash to HeadBlockHash, SafeBlockHash, and FinalizedBlockHash.

We should revisit this and take one or more of the following approaches:

  1. Set the FinalizedBlockHash based on the DA Included Height from the Rollkit Store. For the Head and Safe block hashes, use the Rollkit height which should be the same as the reth block height but it might be good to actually sanity check that on startup and set them in engineClient correctly on start.
  2. Persist the current versions of head, safe, and finalizedBlockHashes somewhere so on restarts they can be loaded back easily.

The concrete consequences of setting finalizedHash incorrectly are unknown currently but it'll likely be at least an issue in indexers and block explorers showing inconsistent finalized block hashes for a small period of time.

Dominant language
Go
Stars
362
Forks
295
Avg merge
9h 29m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evstack/ev-node

All issues in evstack/ev-node

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.