Use TARGET_BLOBS_PER_BLOCK in NewPayloadRequest

This commit is contained in:
Justin Traglia 2024-12-05 11:26:10 -06:00
parent e08882e335
commit 349febe9e7
No known key found for this signature in database
GPG Key ID: F099C9CD25DF82A1
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
versioned_hashes=versioned_hashes, versioned_hashes=versioned_hashes,
parent_beacon_block_root=state.latest_block_header.parent_root, parent_beacon_block_root=state.latest_block_header.parent_root,
execution_requests=body.execution_requests, execution_requests=body.execution_requests,
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, target_blobs_per_block=TARGET_BLOBS_PER_BLOCK,
) )
) )
# Cache execution payload header # Cache execution payload header

View File

@ -705,7 +705,7 @@ def process_execution_payload(state: BeaconState,
versioned_hashes=versioned_hashes, versioned_hashes=versioned_hashes,
parent_beacon_block_root=state.latest_block_header.parent_root, parent_beacon_block_root=state.latest_block_header.parent_root,
execution_requests=requests, execution_requests=requests,
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, target_blobs_per_block=TARGET_BLOBS_PER_BLOCK,
) )
) )

View File

@ -176,7 +176,7 @@ def prepare_execution_payload(state: BeaconState,
suggested_fee_recipient=suggested_fee_recipient, suggested_fee_recipient=suggested_fee_recipient,
withdrawals=withdrawals, withdrawals=withdrawals,
parent_beacon_block_root=hash_tree_root(state.latest_block_header), parent_beacon_block_root=hash_tree_root(state.latest_block_header),
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, # [New in Electra:EIP7742] target_blobs_per_block=TARGET_BLOBS_PER_BLOCK, # [New in Electra:EIP7742]
max_blobs_per_block=MAX_BLOBS_PER_BLOCK, # [New in Electra:EIP7742] max_blobs_per_block=MAX_BLOBS_PER_BLOCK, # [New in Electra:EIP7742]
) )
return execution_engine.notify_forkchoice_updated( return execution_engine.notify_forkchoice_updated(