Skip to content

Conversation

@nsannn
Copy link
Collaborator

@nsannn 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

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 {
Copy link
Collaborator

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?

Comment on lines +516 to +518
while justified_slots_working.len() <= target_slot_int {
justified_slots_working.push(false);
}
Copy link
Collaborator

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())))

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.

3 participants