mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-20 15:38:55 +00:00
More concise finality ranking
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
parent
aa8caee2e3
commit
35f5010de7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user