More concise finality ranking

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

View File

@ -131,7 +131,7 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
new_has_finality = is_finality_update(new_update)
old_has_finality = is_finality_update(old_update)
if new_has_finality != old_has_finality:
return new_has_finality > old_has_finality
return new_has_finality
# Compare sync committee finality
if new_has_finality: