-
Notifications
You must be signed in to change notification settings - Fork 878
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 to increment/decrement gas-limit in block production #6425
Fix to increment/decrement gas-limit in block production #6425
Conversation
|
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
1b7a6e9
to
b44019a
Compare
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Think this is the geth code and it doesn't include a constant 1024 increment so besu does appear to be wrong according to both the spec and geth...https://github.com/ethereum/go-ethereum/blob/e5d5e09faae48dac3723634e2b1813e4f2e89535/core/block_validator.go#L152 |
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
…imit of 1024 Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow. just wow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as we verified the arithmetic and the resulting diff in the test artifact, 🚢
currentGasLimit = 3141592 (0x2fefd8)
|
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Added same unit tests as geth for extra robustness https://github.com/ethereum/go-ethereum/blob/830f3c764c21f0d314ae0f7e60d6dd581dc540ce/core/block_validator_test.go#L242 |
PR description
Fixes discord bug found by protoplanetary
Fixed Issue(s)