More concise finality ranking

This commit is contained in:
Etan Kissling 2022-07-12 07:37:12 +02:00
parent 654970c605
commit 6048f1abf6
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
== compute_sync_committee_period_at_slot(old_update.signature_slot) == compute_sync_committee_period_at_slot(old_update.signature_slot)
) )
if new_has_relevant_sync_committee != old_has_relevant_sync_committee: if new_has_relevant_sync_committee != old_has_relevant_sync_committee:
return new_has_relevant_sync_committee > old_has_relevant_sync_committee return new_has_relevant_sync_committee
# Compare indication of any finality # Compare indication of any finality
new_has_finality = is_finality_update(new_update) new_has_finality = is_finality_update(new_update)