From fa85648385ebe8f6378779fa3822799d3ae3efb6 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 8 Jul 2022 22:03:31 -0700 Subject: [PATCH] `==` on new line Co-authored-by: Hsiao-Wei Wang --- specs/altair/sync-protocol.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/altair/sync-protocol.md b/specs/altair/sync-protocol.md index ab9ffe8af..b9290e789 100644 --- a/specs/altair/sync-protocol.md +++ b/specs/altair/sync-protocol.md @@ -136,12 +136,12 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat # Compare sync committee finality if new_has_finality: new_has_sync_committee_finality = ( - compute_sync_committee_period_at_slot(new_update.finalized_header.slot) == - compute_sync_committee_period_at_slot(new_update.attested_header.slot) + compute_sync_committee_period_at_slot(new_update.finalized_header.slot) + == compute_sync_committee_period_at_slot(new_update.attested_header.slot) ) old_has_sync_committee_finality = ( - compute_sync_committee_period_at_slot(old_update.finalized_header.slot) == - compute_sync_committee_period_at_slot(old_update.attested_header.slot) + compute_sync_committee_period_at_slot(old_update.finalized_header.slot) + == compute_sync_committee_period_at_slot(old_update.attested_header.slot) ) if new_has_sync_committee_finality != old_has_sync_committee_finality: return new_has_sync_committee_finality > old_has_sync_committee_finality