Skip to content

Commit

Permalink
update to latest light client spec
Browse files Browse the repository at this point in the history
Adds the additional check to ensure `optimistic_header` is always after
`finalized_header`, as introduced to the spec in:
ethereum/consensus-specs#2814
  • Loading branch information
etan-status committed Mar 15, 2022
1 parent afbe16c commit 12ff2ef
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 12ff2ef

Please sign in to comment.