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 consensus vulnerability regarding excessively large 1559 fee fields #2338

Merged
merged 7 commits into from
May 28, 2021

Conversation

RatanRSur
Copy link
Contributor

@RatanRSur RatanRSur commented May 28, 2021

PR description

ethereum/pm#321 (comment)

Changelog

Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

Do we need to update MainnetBlockBodyValidator.validateTransactionGasPrice also for blocks that are imported or synced ? TransactionDecoder should handle case 1 & 2, I presume case 4 is handled by actually executing the transaction, but I don't see a code path that checks for # 3 for imported blocks.

Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
@garyschulte
Copy link
Contributor

Do we need to update MainnetBlockBodyValidator.validateTransactionGasPrice ... I don't see a code path that checks for # 3 for imported blocks.

Ah nvm, it looks like we call validateTransaction in processBlock -> processTransaction

Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

LGTM, 🚢

@RatanRSur RatanRSur merged commit 68510e5 into hyperledger:master May 28, 2021
@RatanRSur RatanRSur deleted the big-fee-issues branch May 28, 2021 20:45
lucassaldanha pushed a commit to lucassaldanha/besu that referenced this pull request May 31, 2021
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
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