Skip to content

add attestationGloas and replace usages - #17258

Open
Inspector-Butters wants to merge 2 commits into
developfrom
add-attestation-gloas
Open

add attestationGloas and replace usages#17258
Inspector-Butters wants to merge 2 commits into
developfrom
add-attestation-gloas

Conversation

@Inspector-Butters

Copy link
Copy Markdown
Contributor

Add AttestationGloas and replace usages throughout the codebase, in order for codegen to be able to distinguish between the progressive and legacy merkleization.

@Inspector-Butters
Inspector-Butters force-pushed the add-attestation-gloas branch 2 times, most recently from 2d84c8c to ab8c22c Compare July 29, 2026 10:36
Comment thread proto/prysm/v1alpha1/gloas.ssz.go Dismissed
@syjn99
syjn99 self-requested a review July 29, 2026 11:09
repeated AttesterSlashingElectra attester_slashings = 5
[ (ethereum.eth.ext.ssz_max) = "1" ];
repeated AttestationElectra attestations = 6
repeated AttestationGloas attestations = 6

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So we might search the entire codebase that can be broken with this change. One concern is the parts that we "assert" some variable as AttestationElectra type like:

func (s *Server) GetBlockAttestationsV2(w http.ResponseWriter, r *http.Request) {

func (bs *Server) ListAttestationsElectra(ctx context.Context, req *ethpb.ListAttestationsRequest) (*ethpb.ListAttestationsElectraResponse, error) {


// Version --
func (a *AttestationGloas) Version() int {
return version.Gloas

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return version.Gloas
return version.Electra

Yeah this looks weird but I believe this should be

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OR finding all att.Version() parts and checks whether the predicate contains equal sign/inequality sign, that is either

  • if att.Version() == version.Electra: This can be problematic with the change that this PR brings
  • if att.Version() >= version.Electra: This is OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants