Skip to content

Commit

Permalink
add LightClientHeader wrapper
Browse files Browse the repository at this point in the history
The light client data structures were changed to accommodate additional
fields in future forks (e.g., to also hold execution data).

There is a minor change to the JSON serialization, where the `header`
properties are now nested inside a `LightClientHeader`.
The SSZ serialization remains compatible.

See ethereum/consensus-specs#3190
  • Loading branch information
etan-status committed Jan 9, 2023
1 parent 5531223 commit c6703b4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions types/altair/light_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ Altair:
minItems: 5
maxItems: 5

LightClientHeader:
type: object
properties:
beacon:
$ref: '../block.yaml#/BeaconBlockHeader'

LightClientBootstrap:
type: object
properties:
header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
current_sync_committee:
$ref: './sync_committee.yaml#/Altair/SyncCommittee'
current_sync_committee_branch:
Expand All @@ -34,13 +40,13 @@ Altair:
type: object
properties:
attested_header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
next_sync_committee:
$ref: './sync_committee.yaml#/Altair/SyncCommittee'
next_sync_committee_branch:
$ref: '#/Altair/NextSyncCommitteeBranch'
finalized_header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
finality_branch:
$ref: '#/Altair/FinalityBranch'
sync_aggregate:
Expand All @@ -51,9 +57,9 @@ Altair:
type: object
properties:
attested_header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
finalized_header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
finality_branch:
$ref: '#/Altair/FinalityBranch'
sync_aggregate:
Expand All @@ -64,7 +70,7 @@ Altair:
type: object
properties:
attested_header:
$ref: '../block.yaml#/BeaconBlockHeader'
$ref: '#/LightClientHeader'
sync_aggregate:
$ref: './sync_aggregate.yaml#/Altair/SyncAggregate'
signature_slot:
Expand Down

0 comments on commit c6703b4

Please sign in to comment.