Skip to content

Commit

Permalink
Added historical summaries to Capella beacon state.
Browse files Browse the repository at this point in the history
In Capella, historical_roots has been replaced by historical_summaries, but this was not reflected in our state object.

Fixes #315
  • Loading branch information
rolfyone committed May 2, 2023
1 parent af52b6c commit b82dd7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions types/capella/historical_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Capella:
HistoricalSummary:
type: object
description: "The [`HistoricalSummary`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/capella/beacon-chain.md#historicalsummary) object from the CL Capella spec."
properties:
block_summary_root:
$ref: '../primitive.yaml#/Root'
state_summary_root:
$ref: '../primitive.yaml#/Root'
7 changes: 6 additions & 1 deletion types/capella/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Capella:
$ref: '../primitive.yaml#/Root'
historical_roots:
type: array
description: "Variable length list, maximum 16777216 items"
description: "Variable length list, maximum 16777216 items. Frozen in Capella, replaced by historical_summaries."
items:
$ref: '../primitive.yaml#/Root'
eth1_data:
Expand Down Expand Up @@ -86,3 +86,8 @@ Capella:
$ref: "../primitive.yaml#/Uint64"
next_withdrawal_validator_index:
$ref: "../primitive.yaml#/Uint64"
historical_summaries:
type: array
items:
$ref: "./historical_summary.yaml#/Capella/HistoricalSummary"
description: "Variable length list, maximum 16777216 items"

0 comments on commit b82dd7f

Please sign in to comment.