-
Notifications
You must be signed in to change notification settings - Fork 876
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
BFT ignore withdrawals #7115
Merged
macfarla
merged 4 commits into
hyperledger:main
from
matthew1001:qbft-ignore-withdrawals
May 16, 2024
Merged
BFT ignore withdrawals #7115
macfarla
merged 4 commits into
hyperledger:main
from
matthew1001:qbft-ignore-withdrawals
May 16, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Matthew Whitehead <[email protected]>
Signed-off-by: Matthew Whitehead <[email protected]>
Signed-off-by: Matthew Whitehead <[email protected]>
macfarla
approved these changes
May 16, 2024
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.
neat
8 tasks
jflo
pushed a commit
to jflo/besu
that referenced
this pull request
May 28, 2024
* Don't perform validation of withdrawals in BFT chains Signed-off-by: Matthew Whitehead <[email protected]> * Spotless Signed-off-by: Matthew Whitehead <[email protected]> * Remove withdrawal unit test - not applicable any more Signed-off-by: Matthew Whitehead <[email protected]> --------- Signed-off-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
matthew1001
added a commit
to kaleido-io/besu
that referenced
this pull request
Jun 7, 2024
* Don't perform validation of withdrawals in BFT chains Signed-off-by: Matthew Whitehead <[email protected]> * Spotless Signed-off-by: Matthew Whitehead <[email protected]> * Remove withdrawal unit test - not applicable any more Signed-off-by: Matthew Whitehead <[email protected]> --------- Signed-off-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
jflo
pushed a commit
to jflo/besu
that referenced
this pull request
Jun 10, 2024
* Don't perform validation of withdrawals in BFT chains Signed-off-by: Matthew Whitehead <[email protected]> * Spotless Signed-off-by: Matthew Whitehead <[email protected]> * Remove withdrawal unit test - not applicable any more Signed-off-by: Matthew Whitehead <[email protected]> --------- Signed-off-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
Short version:
Skips validation of
withdrawals
when importing BFT blocks since withdrawals don't apply to BFT chainsLong version:
Unfortunately the original shanghai PR #6353 which was included in
24.3.0
had a bug that caused blockwithdrawals
to be set incorrectly for newshanghai
blocks. Withdrawals are not applicable to BFT chains, but the block header still has awithdrawals
field which is validated whenever a block is imported.I fixed the issue in PR #6765 which was released in
24.5.1
. However, any chain withshanghai
enabled in24.3.0
will have already created incorrect blocks, which24.5.1
will now fail to import as the validation is now correct - but the created blocks are not.Without requiring users to restore to a point before
24.3.0
blocks were produced, I think the most pragmatic approach is to disable withdrawal validation on BFT blocks.Fixed Issue(s)
Fixes #7036