From 35f5010de745ac1d96fe0c02389e374da43bbf5b Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 8 Jul 2022 22:01:56 -0700 Subject: [PATCH] More concise finality ranking Co-authored-by: Hsiao-Wei Wang --- specs/altair/sync-protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/altair/sync-protocol.md b/specs/altair/sync-protocol.md index 44fe978f8..ab9ffe8af 100644 --- a/specs/altair/sync-protocol.md +++ b/specs/altair/sync-protocol.md @@ -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: