mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 15:14:59 -05:00
@@ -136,12 +136,12 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
|
||||
# Compare sync committee finality
|
||||
if new_has_finality:
|
||||
new_has_sync_committee_finality = (
|
||||
compute_sync_committee_period_at_slot(new_update.finalized_header.slot) ==
|
||||
compute_sync_committee_period_at_slot(new_update.attested_header.slot)
|
||||
compute_sync_committee_period_at_slot(new_update.finalized_header.slot)
|
||||
== compute_sync_committee_period_at_slot(new_update.attested_header.slot)
|
||||
)
|
||||
old_has_sync_committee_finality = (
|
||||
compute_sync_committee_period_at_slot(old_update.finalized_header.slot) ==
|
||||
compute_sync_committee_period_at_slot(old_update.attested_header.slot)
|
||||
compute_sync_committee_period_at_slot(old_update.finalized_header.slot)
|
||||
== compute_sync_committee_period_at_slot(old_update.attested_header.slot)
|
||||
)
|
||||
if new_has_sync_committee_finality != old_has_sync_committee_finality:
|
||||
return new_has_sync_committee_finality > old_has_sync_committee_finality
|
||||
|
||||
Reference in New Issue
Block a user