Skip to content

Commit

Permalink
update to latest light client spec (#3508)
Browse files Browse the repository at this point in the history
Adds the additional check to ensure `optimistic_header` is always after
`finalized_header` in `LightClientStore`, as introduced to the spec in
ethereum/consensus-specs#2814
  • Loading branch information
etan-status authored Mar 16, 2022
1 parent 8fbcf29 commit 88af3f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beacon_chain/spec/light_client_sync.nim
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ func apply_light_client_update(
didProgress = true
if active_header.slot > store.finalized_header.slot:
store.finalized_header = active_header
if store.finalized_header.slot > store.optimistic_header.slot:
store.optimistic_header = store.finalized_header
didProgress = true
didProgress

Expand Down

0 comments on commit 88af3f2

Please sign in to comment.