Skip to content

Commit

Permalink
Added historical summaries to Capella beacon state. (#316)
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 authored May 2, 2023
1 parent af52b6c commit ec5f935
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ These endpoints have been added or updated since the last release.

There are likely to be descriptions etc outside of the list below, but new query parameters, changes to headers, new endpoints should be listed.

| Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------|

| Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) |
|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------|
| [#316](https://github.com/ethereum/beacon-APIs/pull/316) `/eth/v2/debug/beacon/states` added `historical_summaries` to response | | | | | |

The Following are no longer in the Standard API, removed since the latest version.

Expand Down
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 ec5f935

Please sign in to comment.