Update specs/altair/sync-protocol.md

Co-authored-by: terence tsao <terence@prysmaticlabs.com>
This commit is contained in:
vbuterin 2021-11-28 08:31:48 -06:00 committed by GitHub
parent 77188726de
commit c4f70970c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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