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

Implemented expectedGasLimit from spec #8909

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rolfyone
Copy link
Contributor

Made a more complete test suite on the FN to show boundaries.

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.

Made a more complete test suite on the FN to show boundaries.

Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Comment on lines +229 to +240
Arguments.of(36_000_000L, 36_000_000L, 36_000_000L),
Arguments.of(1024_000L, 1024_000L, 1024_000L),
// down inside bounds
Arguments.of(1024_000L, 1023_500L, 1023_500L),
// down outside bounds - results in a partial move
Arguments.of(36_000_000L, 35_000_000L, 35_964_845L),
Arguments.of(1024_000L, 1020_000L, 1023_001L),
// increase outside bounds - results in a partial move
Arguments.of(1024_000L, 1025_000L, 1024_999L),
Arguments.of(30_000_000L, 36_000_000L, 30_029_295L),
// increase inside bounds
Arguments.of(1024_000L, 1024_500L, 1024_500L));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jtraglia so the args are parent, target, expected output...

Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants