File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ethereum/consensus-core/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub fn apply_generic_update<S: ConsensusSpec>(
169169 && update_finalized_period == update_attested_period;
170170
171171 let should_apply_update = {
172- let has_majority = committee_bits * 3 >= S :: sync_commitee_size ( ) * 2 ;
172+ let has_majority = committee_bits * 3 >= S :: sync_committee_size ( ) * 2 ;
173173 if !has_majority {
174174 warn ! ( "skipping block with low vote count" ) ;
175175 }
@@ -352,7 +352,7 @@ pub fn verify_generic_update<S: ConsensusSpec>(
352352/// WARNING: `force_update` allows Helios to accept a header with less than a quorum of signatures.
353353/// Use with caution only in cases where it is not possible that valid updates are being censored.
354354pub fn force_update < S : ConsensusSpec > ( store : & mut LightClientStore < S > , current_slot : u64 ) {
355- if current_slot > store. finalized_header . beacon ( ) . slot + S :: slots_per_sync_commitee_period ( ) {
355+ if current_slot > store. finalized_header . beacon ( ) . slot + S :: slots_per_sync_committee_period ( ) {
356356 if let Some ( mut best_valid_update) = store. best_valid_update . clone ( ) {
357357 if best_valid_update
358358 . finalized_header
@@ -384,7 +384,7 @@ pub fn expected_current_slot(now: SystemTime, genesis_time: u64) -> u64 {
384384
385385pub fn calc_sync_period < S : ConsensusSpec > ( slot : u64 ) -> u64 {
386386 let epoch = slot / S :: slots_per_epoch ( ) ;
387- epoch / S :: epochs_per_sync_commitee_period ( )
387+ epoch / S :: epochs_per_sync_committee_period ( )
388388}
389389
390390pub fn get_bits < S : ConsensusSpec > ( bitfield : & BitVector < S :: SyncCommitteeSize > ) -> u64 {
You can’t perform that action at this time.
0 commit comments