mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 23:05:12 -05:00
More concise finality ranking
This commit is contained in:
@@ -153,7 +153,7 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
|
||||
== compute_sync_committee_period_at_slot(old_update.signature_slot)
|
||||
)
|
||||
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
|
||||
new_has_finality = is_finality_update(new_update)
|
||||
|
||||
Reference in New Issue
Block a user