Skip to content

Conversation

@jimmygchen
Copy link
Member

@jimmygchen jimmygchen commented Aug 18, 2025

Issue Addressed

Fulu update to spec v1.6.0-alpha.4.

  • Make number_of_columns a preset
  • Optimise get_custody_groups to avoid computing if cgc = 128
  • Add support for additional typenum values in type_dispatch macro

@jimmygchen jimmygchen requested a review from jxs as a code owner August 18, 2025 06:33
@jimmygchen jimmygchen added the v8.0.0-rc.0 Q3 2025 release for Fusaka on Holesky label Aug 18, 2025
@jimmygchen jimmygchen force-pushed the specs-v1.6.0-alpha.4 branch from 7c84100 to 61a85a0 Compare August 18, 2025 06:44
@jimmygchen jimmygchen force-pushed the specs-v1.6.0-alpha.4 branch from 61a85a0 to 25e4f02 Compare August 18, 2025 06:59
@jimmygchen jimmygchen added ready-for-review The code is ready for review fulu Required for the upcoming Fulu hard fork labels Aug 18, 2025
@mergify
Copy link

mergify bot commented Aug 18, 2025

Some required checks have failed. Could you please take a look @jimmygchen? 🙏

@mergify mergify bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Aug 18, 2025
@jimmygchen jimmygchen added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Aug 18, 2025
jimmygchen added a commit that referenced this pull request Aug 18, 2025
Squashed commit of the following:

commit 4c687ba
Author: Jimmy Chen <[email protected]>
Date:   Mon Aug 18 23:32:55 2025 +1000

    Remove `NUMBER_OF_COLUMNS` from all config yaml files.

commit 4bb5d72
Author: Jimmy Chen <[email protected]>
Date:   Mon Aug 18 23:21:42 2025 +1000

    Ignore EIP-7916 and fix some `fake_crypto` tests.

commit 21af25f
Author: Jimmy Chen <[email protected]>
Date:   Mon Aug 18 17:40:37 2025 +1000

    Add support for additional typenum values in type_dispatch macro

commit 25e4f02
Author: Jimmy Chen <[email protected]>
Date:   Mon Aug 18 16:06:06 2025 +1000

    Change `number_of_columns` from config to a preset value.
@jimmygchen jimmygchen mentioned this pull request Aug 18, 2025
2 tasks
Copy link
Member

@ethDreamer ethDreamer left a comment

Choose a reason for hiding this comment

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

Looks good to me! Some small recommendations but not married to them.

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Aug 20, 2025
mergify bot added a commit that referenced this pull request Aug 20, 2025
@mergify
Copy link

mergify bot commented Aug 20, 2025

This pull request has been removed from the queue for the following reason: pull request manually updated.

The pull request #7890 has been manually updated.

You can check the last failing draft PR here: #7904.

If you want to requeue this pull request, you can post a @mergifyio requeue comment.

@jimmygchen
Copy link
Member Author

@Mergifyio requeue

@mergify
Copy link

mergify bot commented Aug 20, 2025

requeue

☑️ This pull request is already queued

mergify bot added a commit that referenced this pull request Aug 20, 2025
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

LGTM

.collect::<Vec<_>>();
let all_data_columns =
RuntimeVariableList::from_vec(all_data_columns, self.spec.number_of_columns as usize);
RuntimeVariableList::from_vec(all_data_columns, T::EthSpec::number_of_columns());
Copy link
Member

Choose a reason for hiding this comment

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

Could this (eventually) become a VariableList now that the max length is determined at compile-time by the preset?

I guess it doesn't matter, as this vec seems only to be used for verification

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah thats right. I tried doing that and it didn't make any difference, so i ended up reverting it

JustificationAndFinalization, ParticipationFlagUpdates, ParticipationRecordUpdates,
PendingBalanceDeposits, PendingConsolidations, ProposerLookahead, RandaoMixesReset,
RegistryUpdates, RewardsAndPenalties, Slashings, SlashingsReset, SyncCommitteeUpdates,
Case, EffectiveBalanceUpdates, Eth1DataReset, FeatureName, HistoricalRootsUpdate,
Copy link
Member

Choose a reason for hiding this comment

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

Does the reordering of these imports imply we aren't running cargo fmt on our tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed DataColumnsByRootIdentifierWrapper, so the position of line break changed.

mergify bot added a commit that referenced this pull request Aug 20, 2025
@mergify mergify bot merged commit b4704ea into sigp:unstable Aug 20, 2025
34 checks passed
mergify bot pushed a commit that referenced this pull request Aug 25, 2025
Fixes #7926

This was a bug I introduced in #7890 and @pawanjay176 noticed it on some running nodes, and added a rpc test to confirm it.

The culprit is this line, where I failed to fill the vec to it's max size, so it doesn't calculate the max size properly, resulting in all `DataColumnByRoot` requests exceeding the max size during validation:
https://github.com/sigp/lighthouse/blob/d24a6d2a45f25dfdba8740d10c569226555a8143/consensus/types/src/chain_spec.rs#L1984

The PR fixes this and includes new regression tests for this fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fulu Required for the upcoming Fulu hard fork ready-for-merge This PR is ready to merge. v8.0.0-rc.0 Q3 2025 release for Fusaka on Holesky

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants