-
Notifications
You must be signed in to change notification settings - Fork 2
Implemented changes to attestations based on LeanSpec commit #234 #37
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
base: devnet-2
Are you sure you want to change the base?
Conversation
nsannn
commented
Jan 12, 2026
- Removed to_plain() method, added check for duplicate data.
- Minor fixes to Cargo.toml to use use env-config/devnet2 in devnet2 feature flags
…dded readme on how to select devnet
…) method, added check for duplicate data
| pub fn to_plain(&self) -> Vec<Attestation> { | ||
| let validator_indices = self.aggregation_bits.to_validator_indices(); | ||
| /// Trait for checking duplicate attestation data. | ||
| pub trait HasDuplicateData { |
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.
Why trait? You can just add new function to impl block above?
| while justified_slots_working.len() <= target_slot_int { | ||
| justified_slots_working.push(false); | ||
| } |
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 believe this can be simplified with .extend(iter::repeat_n(false, target_slot_int.saturating_sub(justified_slots_working.len())))
|
I believe that we can close this PR, since these requested changes have been addressed in latest devnet-2 branch commits. |