Skip to content

Add ptc_window field to gloas BeaconState (alpha.4)#9

Merged
pk910 merged 1 commit intopk910:pk910/dynssz-codegen-gloasfrom
barnabasbusa:bbusa/alpha4
Mar 31, 2026
Merged

Add ptc_window field to gloas BeaconState (alpha.4)#9
pk910 merged 1 commit intopk910:pk910/dynssz-codegen-gloasfrom
barnabasbusa:bbusa/alpha4

Conversation

@barnabasbusa
Copy link
Copy Markdown

Summary

  • Adds ptc_window field to the gloas BeaconState struct, matching consensus-specs v1.7.0-alpha.4 (PR #4979)
  • The field is Vector[Vector[ValidatorIndex, PTC_SIZE], (2+MIN_SEED_LOOKAHEAD)*SLOTS_PER_EPOCH] — caches precomputed PTC assignments
  • Includes JSON/YAML serialization support and regenerated SSZ code

Test plan

  • go build ./... passes
  • SSZ code regenerated via go generate in spec/gloas/
  • Verify SSZ round-trip with alpha.4 spec test vectors when available

🤖 Generated with Claude Code

Add the cached PTC (Payload Timeliness Committee) window field to the
gloas BeaconState, matching consensus-specs v1.7.0-alpha.4 (PR #4979).

The field is a Vector[Vector[ValidatorIndex, PTC_SIZE],
(2+MIN_SEED_LOOKAHEAD)*SLOTS_PER_EPOCH] that caches precomputed PTC
assignments for the previous, current, and lookahead epochs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pk910 pk910 merged commit 05aefaa into pk910:pk910/dynssz-codegen-gloas Mar 31, 2026
2 of 4 checks passed
@barnabasbusa barnabasbusa deleted the bbusa/alpha4 branch March 31, 2026 08:51
barnabasbusa added a commit to ethpandaops/dora that referenced this pull request Mar 31, 2026
Now that pk910/go-eth2-client#9 is merged, point the replace directive
back to pk910's dynssz-codegen-gloas branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
barnabasbusa added a commit to ethpandaops/assertoor that referenced this pull request Mar 31, 2026
Now that pk910/go-eth2-client#9 is merged, point the replace directive
back to pk910's dynssz-codegen-gloas branch.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants