Merge pull request #3665 from jtraglia/upgrade-electra-blob-gas

Track blob gas when upgrading to electra
This commit is contained in:
Hsiao-Wei Wang 2024-04-10 07:34:21 +09:00 committed by GitHub
commit 7582b7ffbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -88,10 +88,10 @@ def upgrade_to_electra(pre: deneb.BeaconState) -> BeaconState:
block_hash=pre.latest_execution_payload_header.block_hash,
transactions_root=pre.latest_execution_payload_header.transactions_root,
withdrawals_root=pre.latest_execution_payload_header.withdrawals_root,
blob_gas_used=uint64(0),
excess_blob_gas=uint64(0),
blob_gas_used=pre.latest_execution_payload_header.blob_gas_used,
excess_blob_gas=pre.latest_execution_payload_header.excess_blob_gas,
deposit_receipts_root=Root(), # [New in Electra:EIP6110]
exits_root=Root(), # [New in Electra:EIP-7002],
exits_root=Root(), # [New in Electra:EIP7002],
)
post = BeaconState(
# Versioning