Skip to content

Comments

[WIP] Gloas ForkChoice#7808

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

[WIP] Gloas ForkChoice#7808
Tomi-3-0 wants to merge 29 commits intounstablefrom
gloas/fork-choice

Conversation

@Tomi-3-0
Copy link
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

github-actions bot commented Dec 17, 2025

Unit Test Results

         3 files   -          9       610 suites   - 1 830   13m 14s ⏱️ - 41m 0s
12 281 tests  -      602  11 779 ✔️  -      557  502 💤  -   45  0 ±0 
16 317 runs   - 48 907  15 815 ✔️  - 48 699  502 💤  - 208  0 ±0 

Results for commit ddb93b3. ± Comparison against base commit 099214d.

♻️ This comment has been updated with latest results.

Copy link
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
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
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
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
Contributor

Choose a reason for hiding this comment

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

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