Skip to content

Replace SECONDS_PER_SLOT with SLOT_DURATION_MS in specs/tests#4926

Merged
jtraglia merged 1 commit intoethereum:masterfrom
jtraglia:remove-seconds-per-slot
Mar 2, 2026
Merged

Replace SECONDS_PER_SLOT with SLOT_DURATION_MS in specs/tests#4926
jtraglia merged 1 commit intoethereum:masterfrom
jtraglia:remove-seconds-per-slot

Conversation

@jtraglia
Copy link
Copy Markdown
Member

@jtraglia jtraglia commented Feb 15, 2026

This PR takes the next step in removing SECONDS_PER_SLOT. This config was deprecated but still used in a few places. It's time to fix these & remove the config.

I find the current state of this PR to be a little ugly, but I think it would be best to review/merge this PR, then follow up with another PR which changes Store.time to Store.time_ms.

@jtraglia jtraglia requested a review from jihoonsong February 15, 2026 23:56
@github-actions github-actions bot added testing CI, actions, tests, testing infra phase0 eip7805 FOCIL gloas labels Feb 15, 2026
@jtraglia jtraglia force-pushed the remove-seconds-per-slot branch from 686cc1c to 53391f6 Compare February 18, 2026 18:24
@jtraglia jtraglia marked this pull request as ready for review February 18, 2026 18:27
Copy link
Copy Markdown
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

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

we completely removed any references from Lodestar a few months ago but I would suggest that clients still return SECONDS_PER_SLOT as part of their config until the next hard fork to avoid interop issues

@jtraglia jtraglia force-pushed the remove-seconds-per-slot branch from 53391f6 to 56b735d Compare February 23, 2026 21:45
@github-actions github-actions bot added the heze label Feb 23, 2026
@jtraglia
Copy link
Copy Markdown
Member Author

jtraglia commented Mar 2, 2026

We are cleaning up the config in other PRs so it makes sense to finally delete SECONDS_PER_SLOT. This will allow us to continue working on eip7782. I'm going to merge this now.

@jtraglia jtraglia merged commit 84a6428 into ethereum:master Mar 2, 2026
16 checks passed
@jtraglia jtraglia deleted the remove-seconds-per-slot branch March 2, 2026 18:03
barnabasbusa added a commit to ethpandaops/ethereum-genesis-generator that referenced this pull request Mar 6, 2026
Reflects ethereum/consensus-specs#4926 which removes the deprecated
SECONDS_PER_SLOT config. All internal usage now derives seconds from
SLOT_DURATION_MS where needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
barnabasbusa added a commit to ethpandaops/dora that referenced this pull request Mar 12, 2026
The consensus specs deprecated SECONDS_PER_SLOT in favor of
SLOT_DURATION_MS (ethereum/consensus-specs#4926). The genesis generator
has already removed SECONDS_PER_SLOT from config templates
(ethpandaops/ethereum-genesis-generator#268).

Add SlotDurationMs field and reconcile between the two fields after
parsing for backward compatibility with older configs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
barnabasbusa added a commit to ethpandaops/dora that referenced this pull request Mar 12, 2026
The consensus specs deprecated SECONDS_PER_SLOT in favor of
SLOT_DURATION_MS (ethereum/consensus-specs#4926). The genesis generator
has already removed SECONDS_PER_SLOT from config templates
(ethpandaops/ethereum-genesis-generator#268).

Replace all internal usage of SecondsPerSlot with SlotDurationMs to
use millisecond precision throughout. The deprecated SECONDS_PER_SLOT
YAML field is still parsed for backward compatibility with older configs
and derived into SlotDurationMs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
barnabasbusa added a commit to ethpandaops/assertoor that referenced this pull request Mar 25, 2026
SECONDS_PER_SLOT has been deprecated and removed from the consensus spec
config (ethereum/consensus-specs#4926) in favor of SLOT_DURATION_MS.
When CL nodes stop returning SECONDS_PER_SLOT, the ChainSpec field stays
at zero, causing a divide-by-zero panic in ethwallclock when computing
the current slot.

Replace SecondsPerSlot (time.Duration) with SlotDurationMs (uint64) in
ChainSpec to match the new spec field directly. Fall back to
SECONDS_PER_SLOT for backwards compatibility with older genesis configs.
Add a guard in InitWallclock to prevent the panic if neither value is
available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eip7805 FOCIL gloas heze phase0 testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants