Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

eupgrade/cancun: verify no blobs in header #611

Merged
merged 10 commits into from
Aug 2, 2024
Merged

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Jul 24, 2024

Why this should be merged

It is safer to disallow blobs in block verification, since there is no builder/mempool.

How this works

Enforces a 0 blob gas, which implies no blobs (and is easy to check from the header without a larger code change)

How this was tested

CI

@darioush darioush marked this pull request as ready for review July 24, 2024 20:44
@darioush darioush requested a review from ceyonur as a code owner July 24, 2024 20:44
Copy link
Contributor

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

Please add a test that results in an expected error because of blobs.

consensus/dummy/consensus.go Show resolved Hide resolved
consensus/dummy/consensus.go Outdated Show resolved Hide resolved
consensus/dummy/consensus.go Show resolved Hide resolved
consensus/dummy/consensus.go Show resolved Hide resolved
consensus/dummy/consensus.go Show resolved Hide resolved
@darioush darioush requested a review from ARR4N July 30, 2024 01:50
plugin/evm/vm_test.go Outdated Show resolved Hide resolved
plugin/evm/vm_test.go Outdated Show resolved Hide resolved
plugin/evm/vm_test.go Show resolved Hide resolved
@darioush darioush requested a review from ARR4N July 31, 2024 17:36
plugin/evm/vm_test.go Show resolved Hide resolved
@darioush darioush merged commit 07b7f15 into master Aug 2, 2024
8 checks passed
@darioush darioush deleted the verify-no-blobs branch August 2, 2024 15:31
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
* eupgrade/cancun: verify no blobs in header

* Update consensus/dummy/consensus.go

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>

* fix ut

* review comments

* add UT

* use require

* fix ut

* update UT to make a blob TX

---------

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants