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

Fix off-by-one in process_pending_consolidations #8502

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

lucassaldanha
Copy link
Member

PR Description

  • Fix off-by-one in process_pending_consolidations ()
  • Updated ref-rests to version v1.5.0-alpha.4

Fixed Issue(s)

fixes #8501

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

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

The PR addresses an off-by-one error in the process_pending_consolidations method and updates the reference test version in build.gradle.

  • ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/statetransition/epoch/EpochProcessorElectra.java: Fixed off-by-one error in processPendingConsolidations by adjusting the current epoch calculation.
  • build.gradle: Updated reference test version from v1.5.0-alpha.3 to v1.5.0-alpha.4.

These changes ensure correct state transitions and validator balance updates.

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

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

@lucassaldanha lucassaldanha merged commit 19894d1 into Consensys:master Aug 11, 2024
16 checks passed
@lucassaldanha lucassaldanha deleted the teku-8501 branch August 11, 2024 22:50
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.

Fix off-by-one in process_pending_balance_deposits
2 participants