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

Refactor some transaction calculations #6150

Merged
merged 9 commits into from
Nov 29, 2023

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Nov 9, 2023

Refactor some transaction calculations, including moving upfront
overflow checks from the constructor to the validator and optimizing
some RLP calculations. Also fix all lint errors.

PR description

Fixed Issue(s)

Clamp upfront gas calculations to uint256 max instead of throwing an
exception. Fix related encoding changes and tests to validate.

Signed-off-by: Danno Ferrin <[email protected]>
Copy link

github-actions bot commented Nov 9, 2023

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@shemnon shemnon marked this pull request as draft November 9, 2023 21:54
@shemnon shemnon marked this pull request as ready for review November 22, 2023 16:08
@shemnon shemnon changed the title Clamp up-front gas calculation Refactor some transaction calculations Nov 22, 2023
@shemnon shemnon enabled auto-merge (squash) November 29, 2023 15:03
@shemnon shemnon merged commit 3765aaf into hyperledger:main Nov 29, 2023
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
Refactor some transaction calculations, including moving upfront
overflow checks from the constructor to the validator and optimizing
some RLP calculations. Also fix all lint errors.

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
Refactor some transaction calculations, including moving upfront
overflow checks from the constructor to the validator and optimizing
some RLP calculations. Also fix all lint errors.

Signed-off-by: Danno Ferrin <[email protected]>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
Refactor some transaction calculations, including moving upfront
overflow checks from the constructor to the validator and optimizing
some RLP calculations. Also fix all lint errors.

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
gfukushima pushed a commit to gfukushima/besu that referenced this pull request Dec 15, 2023
Refactor some transaction calculations, including moving upfront
overflow checks from the constructor to the validator and optimizing
some RLP calculations. Also fix all lint errors.

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
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