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: set excess blob gas and blob gas used for empty payloads #6328

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Feb 1, 2024

Fixes #6324

@Rjected Rjected added C-bug An unexpected or incorrect behavior A-consensus Related to the consensus engine E-cancun Related to the Cancun network upgrade labels Feb 1, 2024
@Rjected
Copy link
Member Author

Rjected commented Feb 1, 2024

re failing test, this is why we can't encode 0 if None:
then, when decoding, Some(0) and None are indistinguishable

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

too many rules

Comment on lines +426 to +430
// The following code is needed only to handle proptest-generated headers that are
// technically invalid.
//
// TODO: make proptest generate more valid headers, ie if there is no base fee, there
// should be no withdrawals root or any future fork field.
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we open an issue for manual arbitrary impl?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes #6329

@Rjected Rjected added this pull request to the merge queue Feb 1, 2024
Merged via the queue into main with commit 7f2167f Feb 1, 2024
28 checks passed
@Rjected Rjected deleted the dan/fix-payload-encoding-empty-cancun branch February 1, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine C-bug An unexpected or incorrect behavior E-cancun Related to the Cancun network upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing cancun header fields if empty payload
2 participants