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

EIP-7516: BLOBBASEFEE opcode #721

Merged
merged 9 commits into from
Sep 21, 2023
Merged

EIP-7516: BLOBBASEFEE opcode #721

merged 9 commits into from
Sep 21, 2023

Conversation

rakita
Copy link
Member

@rakita rakita commented Sep 14, 2023

Cancun: https://eips.ethereum.org/EIPS/eip-7516
add Blobfee opcode

@rakita rakita changed the base branch from main to temp_for_diff September 14, 2023 15:36
@rakita rakita changed the base branch from temp_for_diff to main September 15, 2023 12:18
@rakita rakita added the hf-cancun Cancun hardfork label Sep 15, 2023
@rakita rakita changed the title Blobfee EIP-7516: BLOBBASEFEE opcode Sep 15, 2023
@rakita
Copy link
Member Author

rakita commented Sep 15, 2023

Waiting for on possible naming change: https://github.com/ethereum/go-ethereum/pull/28098/files#r1327222175
But it is ready to be merged.

@rakita rakita marked this pull request as ready for review September 15, 2023 12:31
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Copy link
Collaborator

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

LGTM, just one question about the name

Comment on lines 79 to 83
/// Takes `blob_excess_gas` saves it inside env
/// and calculates `blob_fee` with [`BlobGasAndFee`].
pub fn set_blob_gas_and_fee(&mut self, excess_blob_gas: u64) {
self.blob_gas_and_fee = Some(BlobGasAndFee::new(excess_blob_gas));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this, makes it very easy to set both when initializing the env

@@ -264,7 +265,7 @@ pub const OPCODE_JUMPMAP: [Option<&'static str>; 256] = [
/* 0x47 */ Some("SELFBALANCE"),
/* 0x48 */ Some("BASEFEE"),
/* 0x49 */ Some("BLOBHASH"),
/* 0x4a */ None,
/* 0x4a */ Some("BLOBFEE"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it matter that the opcode is called BLOBBASEFEE in the spec here?

Copy link
Member Author

Choose a reason for hiding this comment

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

This: #721 (comment)
I like BLOBFEE more :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah I missed that, yeah I like BLOBFEE more too

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed back to BLOBBASEFEE per Eth R&D discussion

@rakita
Copy link
Member Author

rakita commented Sep 21, 2023

@Rjected can you review, had some small (name) changes, it is ready to be merged

Copy link
Collaborator

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

LGTM!

@rakita rakita merged commit 26af13e into main Sep 21, 2023
8 checks passed
@rakita rakita deleted the blobfee branch September 21, 2023 23:47
@github-actions github-actions bot mentioned this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hf-cancun Cancun hardfork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants