Skip to content
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

Merged
merged 4 commits into from
Apr 17, 2024

Conversation

jacobkaufmann
Copy link
Contributor

partial #373

Copy link
Owner

@ralexstokes ralexstokes left a 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()
Copy link
Owner

Choose a reason for hiding this comment

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

v fluent

@jacobkaufmann jacobkaufmann marked this pull request as ready for review April 17, 2024 21:09
Copy link
Owner

@ralexstokes ralexstokes left a 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

@ralexstokes ralexstokes merged commit 0ac4ee7 into ralexstokes:main Apr 17, 2024
2 checks passed
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.

2 participants