Skip to content

bump gloas spec to alpha.4#8168

Merged
tersec merged 14 commits intounstablefrom
Tg4
Apr 4, 2026
Merged

bump gloas spec to alpha.4#8168
tersec merged 14 commits intounstablefrom
Tg4

Conversation

@Tomi-3-0
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Unit Test Results

       12 files  ±    0    2 504 suites  +16   54m 48s ⏱️ + 5m 50s
13 053 tests +  75  12 506 ✔️ +  75  547 💤 ±0  0 ±0 
66 068 runs  +456  65 358 ✔️ +456  710 💤 ±0  0 ±0 

Results for commit 18cbbf4. ± Comparison against base commit 4d0196c.

♻️ This comment has been updated with latest results.

@Tomi-3-0 Tomi-3-0 changed the title bump gloas spec to alpha.3 bump gloas spec to alpha.4 Mar 30, 2026
@Tomi-3-0 Tomi-3-0 marked this pull request as ready for review March 30, 2026 20:59
@tersec
Copy link
Copy Markdown
Contributor

tersec commented Mar 30, 2026

Merge conflict in the submodule vendor/nim-ssz-serialization.

@tersec
Copy link
Copy Markdown
Contributor

tersec commented Mar 30, 2026

Run excluded_files="config.yaml|config.nims|beacon_chain.nimble|Makefile|Product.wxs"
The following files do not have an up-to-date copyright year:
- tests/consensus_spec/fulu/test_fixture_ssz_consensus_objects.nim
- tests/consensus_spec/gloas/test_fixture_state_transition_epoch.nim

@Tomi-3-0 Tomi-3-0 force-pushed the Tg4 branch 3 times, most recently from eb4e0be to 058dfc4 Compare March 30, 2026 22:53
@Tomi-3-0 Tomi-3-0 requested review from ahshum and tersec March 31, 2026 21:06
@Tomi-3-0 Tomi-3-0 force-pushed the Tg4 branch 3 times, most recently from d767585 to 12d29e1 Compare April 1, 2026 13:38
for idx in compute_ptc(state, slot, cache):
ptcArray[i] = uint64(idx)
inc i
state.ptc_window.mitem(base_index + slot_offset) = ptcArray
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This currently does an extra copy, i.e. it constructs each subset HashArray of the PTC lookahead then copies that. But it could fill in the target directly.

The challenge is to avoid constant hash recomputation, but that can be done manually.

for idx in compute_ptc(state, slot, cache):
ptcArray[i] = uint64(idx)
inc i
state.ptc_window.mitem(base_index + slot_offset) = ptcArray
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See:

regarding how it does extra copies/allocations.

@tersec tersec enabled auto-merge (squash) April 4, 2026 19:13
@tersec tersec merged commit d1493b4 into unstable Apr 4, 2026
10 checks passed
@tersec tersec deleted the Tg4 branch April 4, 2026 20:41
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.

3 participants