From c4f70970c41205b874c289f2f4f2e2554a18f78e Mon Sep 17 00:00:00 2001 From: vbuterin Date: Sun, 28 Nov 2021 08:31:48 -0600 Subject: [PATCH] Update specs/altair/sync-protocol.md Co-authored-by: terence tsao --- 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 ca7aa7451..dd61b6545 100644 --- a/specs/altair/sync-protocol.md +++ b/specs/altair/sync-protocol.md @@ -107,7 +107,7 @@ def get_subtree_index(generalized_index: GeneralizedIndex) -> uint64: ```python def get_active_header(update: LightClientUpdate) -> BeaconBlockHeader: # Is the update trying to convince us of a finalized header or an optimistic header? - if update.finalized_header BeaconBlockHeader(): + if update.finalized_header != BeaconBlockHeader(): return update.finalized_header else: return update.attested_header