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

core/vm: Add Venoki header's fields when verify double sign #639

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

chiphamskymavis
Copy link
Contributor

@chiphamskymavis chiphamskymavis commented Dec 3, 2024

After Venoki, these fields are added into block's header: BaseFee, BlodGasUsed, ExceedBlobGas.
We need to add them into the double sign verification process to make sure the logic up to date.

The separated struct due to lack off optional and null support of contract Abi

@chiphamskymavis chiphamskymavis force-pushed the fix/double-sign-header-verify branch 4 times, most recently from 21466cf to e8c38a4 Compare December 4, 2024 09:40
@chiphamskymavis chiphamskymavis changed the title core/vm: Add additional header's fields when double sign verify core/vm: Add Venoki header's fields when verify double sign Dec 4, 2024
Copy link
Collaborator

@minh-bq minh-bq left a comment

Choose a reason for hiding this comment

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

I've just left some small comments. Overall, LGTM.

core/types/block.go Outdated Show resolved Hide resolved
core/vm/consortium_precompiled_contracts.go Outdated Show resolved Hide resolved
@chiphamskymavis chiphamskymavis force-pushed the fix/double-sign-header-verify branch from e8c38a4 to cadbe69 Compare December 10, 2024 02:51
@chiphamskymavis chiphamskymavis merged commit d5ab2d5 into master Dec 10, 2024
2 checks passed
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