Skip to content

support SLOT_DURATION_MS as replacement for deprecated SECONDS_PER_SLOT#606

Merged
barnabasbusa merged 4 commits intomasterfrom
support-slot-duration-ms
Mar 19, 2026
Merged

support SLOT_DURATION_MS as replacement for deprecated SECONDS_PER_SLOT#606
barnabasbusa merged 4 commits intomasterfrom
support-slot-duration-ms

Conversation

@barnabasbusa
Copy link
Copy Markdown
Collaborator

@barnabasbusa barnabasbusa commented Mar 12, 2026

Summary

  • Adds SLOT_DURATION_MS field to ChainSpecConfig to support the new consensus spec field
  • Derives SecondsPerSlot from SlotDurationMs / 1000 when only SLOT_DURATION_MS is present (new configs)
  • Derives SlotDurationMs from SecondsPerSlot * 1000 when only SECONDS_PER_SLOT is present (backward compat)

Related: ethereum/consensus-specs#4926, ethpandaops/ethereum-genesis-generator#268

Test plan

  • Verify project builds successfully
  • Test with config containing only SLOT_DURATION_MS (new devnet configs)
  • Test with config containing only SECONDS_PER_SLOT (mainnet/older configs)
  • Test with config containing both fields

🤖 Generated with Claude Code

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 barnabasbusa force-pushed the support-slot-duration-ms branch from ddb279c to e70e0f7 Compare March 12, 2026 14:19
@barnabasbusa barnabasbusa added the build-docker-image Automatically build docker image for PR branch label Mar 16, 2026
@barnabasbusa barnabasbusa requested a review from pk910 March 18, 2026 12:00
@barnabasbusa barnabasbusa enabled auto-merge March 19, 2026 13:43
@barnabasbusa barnabasbusa merged commit d0624ac into master Mar 19, 2026
11 checks passed
@barnabasbusa barnabasbusa deleted the support-slot-duration-ms branch March 19, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-docker-image Automatically build docker image for PR branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants