-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: EIP-7742 #12957
base: main
Are you sure you want to change the base?
feat: EIP-7742 #12957
Conversation
f08d4cc
to
09fbac0
Compare
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.
let expected_excess_blob_gas = if chain_spec.is_prague_active_at_timestamp(parent.timestamp()) { | ||
let parent_target_blobs_per_block = | ||
parent.target_blobs_per_block().ok_or(ConsensusError::TargetBlobsPerBlockMissing)?; | ||
eip7742::calc_excess_blob_gas( | ||
parent_excess_blob_gas, | ||
parent_blob_gas_used, | ||
parent_target_blobs_per_block, | ||
) | ||
} else { | ||
eip4844::calc_excess_blob_gas(parent_excess_blob_gas, parent_blob_gas_used) | ||
}; |
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 looks correct
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 looks correct. unfortunately need to hold off on merging again because of last minute change/possible retraction of most of this eip -.-
Implements EIP-7742
Changes include:
forkchoiceUpdatedV4
endpoint and validation for V4-specific fieldstargetBlobsPerBlock
field and correctly calculated excess blob gasfeeHistory
keeps track of target blob count, and accounts for it when computing blob fee for pending block