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

Blobgas computation in CL #3813

Open
wants to merge 24 commits into
base: dev
Choose a base branch
from
Open

Blobgas computation in CL #3813

wants to merge 24 commits into from

Conversation

dankrad
Copy link
Contributor

@dankrad dankrad commented Jun 24, 2024

This is an alternative version of #3800 where in addition to specifying the blob gas limit in CL, it lifts the whole basefee computation into the CL.

Potential advantages are:

  • it makes it easy to change the max and target independently
  • it allows to adapt gas computation, e.g. correctly computing the excess gas at the boundary when changing the max and target

ralexstokes and others added 22 commits June 12, 2024 14:35
Introducing new fields in the middle of an existing `Container`
pointlessly breaks merkleization of all subsequent fields.
In the case of `committee_bits`, it is also misleading, as
`signature` only covers `data` inside `Attestation`.
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
specs/electra/beacon-chain.md Outdated Show resolved Hide resolved
specs/electra/beacon-chain.md Outdated Show resolved Hide resolved
specs/electra/beacon-chain.md Show resolved Hide resolved
dankrad and others added 2 commits June 25, 2024 12:03
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
@@ -423,10 +435,50 @@ class BeaconState(Container):
# [New in Electra:EIP7251]
pending_partial_withdrawals: List[PendingPartialWithdrawal, PENDING_PARTIAL_WITHDRAWALS_LIMIT]
pending_consolidations: List[PendingConsolidation, PENDING_CONSOLIDATIONS_LIMIT] # [New in Electra:EIP7251]
# [New in Electra: compute blob gas in CL]
excess_blob_gas: uint64
base_fee_per_blob_gas: uint64
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to keep this parameter to be in the state as it can be easily computed given the state?

get_base_fee_per_blob_gas(state)):
return False

state.excess_blob_gas += execution_payload.blob_gas_used
Copy link
Collaborator

Choose a reason for hiding this comment

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