Skip to content

Gloas ForkChoice#7808

Draft
Tomi-3-0 wants to merge 50 commits intounstablefrom
gloas/fork-choice
Draft

Gloas ForkChoice#7808
Tomi-3-0 wants to merge 50 commits intounstablefrom
gloas/fork-choice

Conversation

@Tomi-3-0
Copy link
Copy Markdown
Contributor

No description provided.

@Tomi-3-0 Tomi-3-0 changed the title extend data structures for gloas forkchoice [WIP] Gloas ForkChoice Dec 16, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 17, 2025

Unit Test Results

0 files   -        12  0 suites   - 2 488   0s ⏱️ - 43m 24s
0 tests  - 12 978  0 ✔️  - 12 431  0 💤  - 547  0 ±0 
0 runs   - 65 612  0 ✔️  - 64 902  0 💤  - 710  0 ±0 

Results for commit 60058ef. ± Comparison against base commit 102be79.

♻️ This comment has been updated with latest results.

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.

Do existing fork Gloas choice tests, the ones in {mainnet,minimal}/gloas/fork_choice and executed by https://github.com/status-im/nimbus-eth2/blob/unstable/tests/consensus_spec/test_fixture_fork_choice.nim cover any of this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

They do cover the core fork choice implementation. This is an attempt to cover implementation-specific and some basic sanity checks. I plan to progressively remove the redundant tests.

return true
false

func should_extend_payload*(
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.

if vote:
inc vote_count

if vote_count.uint64 > PAYLOAD_TIMELY_THRESHOLD:
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.

Would be better to declare vote_count as a uint64 to begin with than convert each time. There's no strong reason it has to be int. e.g., var vote_count: uint64 (i.e. 0 initialization is by default) or var vote_count = 0'u64, equivalently.

proposer_boost_root = shortLog(proposer_root)
false

func get_payload_status_tiebreaker*(
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.

@Tomi-3-0 Tomi-3-0 force-pushed the gloas/fork-choice branch from 08ec020 to 957aed2 Compare March 27, 2026 15:22
@Tomi-3-0 Tomi-3-0 changed the title [WIP] Gloas ForkChoice Gloas ForkChoice Mar 27, 2026
@Tomi-3-0 Tomi-3-0 force-pushed the gloas/fork-choice branch from de87460 to 60058ef Compare March 28, 2026 12:14
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