-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat(levm): implement EIP7691 - Blob throughput increase #1782
Conversation
|
|
Benchmark Results ComparisonPR ResultsBenchmark Results: Factorial
Benchmark Results: Fibonacci
Main ResultsBenchmark Results: Factorial
Benchmark Results: Fibonacci
|
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.
All thanks to @fborello-lambda ;)
@@ -43,13 +45,13 @@ pub mod create_opcode { | |||
} | |||
|
|||
pub const VERSIONED_HASH_VERSION_KZG: u8 = 0x01; | |||
pub const MAX_BLOB_NUMBER_PER_BLOCK: usize = 6; |
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.
This constant is not used in LEVM. However, there is an identical constant present here: https://github.com/lambdaclass/ethrex/blob/main/crates/blockchain/constants.rs#L51
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.
Explained here: #1782 (comment)
…_NUMBER_PER_BLOCK
crates/blockchain/constants.rs
Outdated
pub const TARGET_BLOB_NUMBER_PER_BLOCK: u64 = 3; | ||
|
||
/// Max number of blobs per block | ||
pub const MAX_BLOB_NUMBER_PER_BLOCK: u64 = 2 * TARGET_BLOB_NUMBER_PER_BLOCK; | ||
pub const MAX_BLOB_NUMBER_PER_BLOCK: u64 = 6; |
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.
Explained here: #1782 (comment)
…GET_BLOB_NUMBER_PER_BLOCK" This reverts commit f04ba07.
…o fix/levm/blob_txs
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.
LGTM
Motivation
LEVM needs to support the changes introduced in EIP-7691.
Description
This EIP introduces changes to some of the blob hashes' constants values. With this PR, the values for blob hash calculations in LEVM will depend on the spec being used.
Closes #1783
Closes #1776