Skip to content

Comments

Deneb integration: Beacon API getStateV2#12416

Merged
rkapka merged 6 commits intodeneb-integrationfrom
integrate-apis-getstate
May 18, 2023
Merged

Deneb integration: Beacon API getStateV2#12416
rkapka merged 6 commits intodeneb-integrationfrom
integrate-apis-getstate

Conversation

@rkapka
Copy link
Contributor

@rkapka rkapka commented May 17, 2023

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Update of https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Debug/getStateV2 to support Deneb

@rkapka rkapka added the api label May 17, 2023
@rkapka rkapka requested a review from a team as a code owner May 17, 2023 16:15
@rkapka rkapka requested review from kasey, potuz and terencechain and removed request for a team May 17, 2023 16:15
@rkapka rkapka added the Deneb label May 17, 2023
repeated uint64 inactivity_scores = 9001 [(ethereum.eth.ext.ssz_max) = "1099511627776"];
SyncCommittee current_sync_committee = 9002; // [New in Altair]
SyncCommittee next_sync_committee = 9003; // [New in Altair]
// Bellatrix fields [10001-11000]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed this number... isn't this for deneb? this says bellatrix fields shouldn't this be deneb fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say this is fine. Execution payload was introduced in Bellatrix and we only "update" the type of the field.

RandaoMixes: filledByteSlice2D(uint64(params.BeaconConfig().EpochsPerHistoricalVector), 32),
Validators: make([]*ethpb.Validator, 0),
CurrentJustifiedCheckpoint: &ethpb.Checkpoint{Root: make([]byte, fieldparams.RootLength)},
Eth1Data: &ethpb.Eth1Data{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have util functions for these? like just creating an empty object? seems like it's used all over the place

Copy link
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added small comment on test which is probably optional

@rkapka rkapka merged commit 9403351 into deneb-integration May 18, 2023
@rkapka rkapka deleted the integrate-apis-getstate branch May 18, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants