-
Notifications
You must be signed in to change notification settings - Fork 952
Fulu update to spec v1.6.0-alpha.4 #7890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7c84100 to
61a85a0
Compare
61a85a0 to
25e4f02
Compare
|
Some required checks have failed. Could you please take a look @jimmygchen? 🙏 |
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.
ethDreamer
left a comment
There was a problem hiding this 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.
|
@Mergifyio requeue |
☑️ This pull request is already queued |
michaelsproul
left a comment
There was a problem hiding this 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()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.
Issue Addressed
Fulu update to spec v1.6.0-alpha.4.
number_of_columnsa presetget_custody_groupsto avoid computing if cgc = 128