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

Address failing tests from ethereum/tests v11.1 #2084

Merged
merged 1 commit into from Oct 20, 2022

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Oct 7, 2022

What was wrong?

Related to #2075

  • Difficulty calculation was taking into account the parent difficulty which would slip below the DIFFICULTY_MINIMUM value if the parent difficulty was less than the allowed minimum.

How was it fixed?

  • Take the max only between the difficulty calculation and the actual minimum allowed value.

Todo:

Cute Animal Picture

Screen Shot 2022-10-20 at 13 27 26

@fselmo fselmo changed the title [WIP] Address failing tests from ethereum/tests v11.1 [WIP] Address failing tests from ethereum/tests v11.1 Oct 7, 2022
@fselmo fselmo force-pushed the fix-broken-tests branch 3 times, most recently from 768bdde to ad84844 Compare October 13, 2022 19:19
@fselmo fselmo force-pushed the fix-broken-tests branch 2 times, most recently from 99e516c to 0ffb0d0 Compare October 20, 2022 18:49
- Difficulty calculation was taking into account the parent ``difficulty`` which would slip below the ``DIFFICULTY_MINIMUM`` value if the parent ``difficulty`` was less than the allowed minimum. Instead, just take the max between the difficulty calculation and the actual minimum.
@fselmo fselmo marked this pull request as ready for review October 20, 2022 19:28
@fselmo fselmo changed the title [WIP] Address failing tests from ethereum/tests v11.1 Address failing tests from ethereum/tests v11.1 Oct 20, 2022
@fselmo fselmo requested review from kclowes and pacrob October 20, 2022 19:28
Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

@fselmo fselmo merged commit da1c9e7 into ethereum:master Oct 20, 2022
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.

None yet

2 participants