-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: add init electra spec #376
feat: add init electra spec #376
Conversation
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.
amazing start!
pub fn get_committee_indices<const MAX_COMMITTEES_PER_SLOT: usize>( | ||
committee_bits: Bitvector<MAX_COMMITTEES_PER_SLOT>, | ||
) -> Vec<CommitteeIndex> { | ||
committee_bits.iter().enumerate().flat_map(|(i, bit)| bit.then_some(i)).collect() |
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.
v fluent
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.
nice work! lets merge so we can start to parallelize some of this
partial #373