Skip to content

fix: follow the Heze slot duration in the wallclock and UI - #93

Open
barnabasbusa wants to merge 5 commits into
masterfrom
bbusa/heze-slot-duration
Open

barnabasbusa wants to merge 5 commits into
masterfrom
bbusa/heze-slot-duration

Conversation

@barnabasbusa

@barnabasbusa barnabasbusa commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Heze shortens slots from HEZE_FORK_EPOCH onwards (SLOT_DURATION_MS_HEZE), but forky computes every slot as genesis + slot * SECONDS_PER_SLOT, so on heze-devnet-3 (9s slots from epoch 5) its wallclock reports slot ~14.3k while the chain is at ~19k. This bumps ethwallclock to v0.5.0 and passes the Heze schedule to both wallclocks: the configured one via the new optional heze_fork_epoch / slot_duration_ms_heze spec keys, and the per-beacon-node one from HEZE_FORK_EPOCH / SLOT_DURATION_MS_HEZE in /eth/v1/config/spec. Since SECONDS_PER_SLOT is deprecated, slot length now comes from SLOT_DURATION_MS everywhere: the beacon node source reads it from the node, and the config key seconds_per_slot and the /api/v1/ethereum/spec field are replaced by slot_duration_ms (existing configs need seconds_per_slot: 12 → slot_duration_ms: 12000). The Heze keys are exposed on the same endpoint, and the web UI moves its slot/time math (focus, slot dial, controls, events) onto shared schedule helpers so the rulers switch to the shorter slot length at the fork. CI: Playwright moves to 1.64.1 (1.60 cannot install Chromium on the Ubuntu 26.04 ubuntu-latest runners), all actions move to their Node 24 releases, checkout now runs before setup-go so the module cache finds go.sum, and the invalid branches filter on workflow_dispatch is dropped.

Tested live against heze-devnet-3 (9s Heze slots) and heze-devnet-2 (Heze with 12s slots): /api/v1/ethereum/now matches the beacon node head on both, frames land on the right slots, and the slot rulers show 9s and 12s respectively.

Before (live heze-devnet-3):

After, heze-devnet-3 / heze-devnet-2:

@barnabasbusa
barnabasbusa requested a review from Savid as a code owner October 23, 2026 09:58
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.

1 participant