Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated process_consolidation_requests #8400

Merged

Conversation

lucassaldanha
Copy link
Member

@lucassaldanha lucassaldanha commented Jun 25, 2024

PR Description

  • Renamed process_consolidation to process_consolidation_requests (and some other naming alignment)
  • Updated linking to consolidation_request reference tests

The most important change in this PR is on: BlockProcessorElectra#processConsolidationRequests.

Reference to spec method: https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#new-process_consolidation_request

Fixed Issue(s)

relates to #8377

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

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

lgtm, 1 minor question

private void processConsolidationRequest(
final MutableBeaconStateElectra state, final ConsolidationRequest consolidationRequest) {
final UInt64 slot = state.getSlot();
final UInt64 currentEpoch = miscHelpers.computeEpochAtSlot(slot);
Copy link
Contributor

@gfukushima gfukushima Jun 25, 2024

Choose a reason for hiding this comment

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

Maybe we could move this line further below, right before where the currentEpoch gets used.

@lucassaldanha lucassaldanha merged commit 970ec88 into Consensys:master Jun 25, 2024
16 checks passed
@lucassaldanha lucassaldanha deleted the process-consolidation-requests branch June 25, 2024 02:34
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