Set target_blobs_per_block for Electra

This commit is contained in:
Justin Traglia 2024-12-05 11:42:00 -06:00
parent 2439a4c307
commit 9df5d98cc3
No known key found for this signature in database
GPG Key ID: F099C9CD25DF82A1

View File

@ -1251,7 +1251,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
versioned_hashes=versioned_hashes,
parent_beacon_block_root=state.latest_block_header.parent_root,
execution_requests=body.execution_requests, # [New in Electra]
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, # [New in Electra:EIP7742]
target_blobs_per_block=TARGET_BLOBS_PER_BLOCK_ELECTRA, # [New in Electra:EIP7742]
)
)
# Cache execution payload header