Skip to content

Commit

Permalink
Update consensus.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daulox92 authored Jan 9, 2025
1 parent bfa5c27 commit 064909f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ impl<S: ConsensusSpec, R: ConsensusRpc<S>> Inner<S, R> {
}

fn log_finality_update(&self, update: &FinalityUpdate<S>) {
let size = S::sync_commitee_size() as f32;
let size = S::sync_committee_size() as f32;
let participation =
get_bits::<S>(&update.sync_aggregate.sync_committee_bits) as f32 / size * 100f32;
let decimals = if participation == 100.0 { 1 } else { 2 };
Expand All @@ -524,7 +524,7 @@ impl<S: ConsensusSpec, R: ConsensusRpc<S>> Inner<S, R> {
}

fn log_optimistic_update(&self, update: &FinalityUpdate<S>) {
let size = S::sync_commitee_size() as f32;
let size = S::sync_committee_size() as f32;
let participation =
get_bits::<S>(&update.sync_aggregate.sync_committee_bits) as f32 / size * 100f32;
let decimals = if participation == 100.0 { 1 } else { 2 };
Expand Down

0 comments on commit 064909f

Please sign in to comment.