mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-10 01:34:29 +00:00
Use TARGET_BLOBS_PER_BLOCK in NewPayloadRequest
This commit is contained in:
parent
e08882e335
commit
349febe9e7
@ -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
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user