More concise sync committee finality ranking

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
Etan Kissling 2022-07-08 22:05:48 -07:00 committed by GitHub
parent fa85648385
commit 33f572c98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
== compute_sync_committee_period_at_slot(old_update.attested_header.slot) == compute_sync_committee_period_at_slot(old_update.attested_header.slot)
) )
if new_has_sync_committee_finality != old_has_sync_committee_finality: if new_has_sync_committee_finality != old_has_sync_committee_finality:
return new_has_sync_committee_finality > old_has_sync_committee_finality return new_has_sync_committee_finality
# Tiebreaker 1: Sync committee participation beyond supermajority # Tiebreaker 1: Sync committee participation beyond supermajority
if new_num_active_participants != old_num_active_participants: if new_num_active_participants != old_num_active_participants: