Skip to content

Refactor more beacon core types to beacon_core_types.proto#15695

Merged
terencechain merged 1 commit intodevelopfrom
refactor-block-proto-1
Sep 16, 2025
Merged

Refactor more beacon core types to beacon_core_types.proto#15695
terencechain merged 1 commit intodevelopfrom
refactor-block-proto-1

Conversation

@terencechain
Copy link
Copy Markdown
Collaborator

This PR moves the following beacon chain core type to its respective proto file to set up gloas.proto in #15601

  • SyncAggregate
  • AttesterSlashingElectra
  • IndexedAttestationElectra
  • Fork
  • SyncCommittee
  • HistoricalSummary
  • Validator

ethereum.engine.v1.ExecutionRequests execution_requests = 13;
}

message AttesterSlashingElectra {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be going into core? if we go this way wouldn't it make more sense to have it in its own electra proto?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, since gloas.proto's beacon block will use AttesterSlashingElectra, it needs to live in a common place. From the slack discussion, there was some hesitation about moving existing objects already tied to the fork structure. The concern was that this would end up doing more than what’s required just to set up gloas.proto. For now, the goal is to keep the lift minimal rather than making the broader changes...

repeated bool is_aggregator = 3;
}

// An Ethereum validator.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Note to the reviewer, the file name is a bit confusing. It’s called validator.proto, but it’s not for the validator core type. It’s intended for use by the validator client RPC end point, so I think it’s fine to move this

Copy link
Copy Markdown
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.

LGTM, there is a todo to clean up these fork specific types down the road. approving to unblock gloas

@terencechain terencechain added this pull request to the merge queue Sep 16, 2025
Merged via the queue into develop with commit db074cb Sep 16, 2025
17 checks passed
@terencechain terencechain deleted the refactor-block-proto-1 branch September 16, 2025 13:58
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