Skip to content

Commit 9e085e4

Browse files
committed
Move target_blobs_per_block to NewPayloadRequest
1 parent 408fb52 commit 9e085e4

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

specs/_features/eip7594/beacon-chain.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
5353
versioned_hashes=versioned_hashes,
5454
parent_beacon_block_root=state.latest_block_header.parent_root,
5555
execution_requests=body.execution_requests,
56+
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2,
5657
)
5758
)
5859
# Cache execution payload header

specs/_features/eip7732/beacon-chain.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ def process_execution_payload(state: BeaconState,
705705
versioned_hashes=versioned_hashes,
706706
parent_beacon_block_root=state.latest_block_header.parent_root,
707707
execution_requests=requests,
708+
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2,
708709
)
709710
)
710711

specs/electra/beacon-chain.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ class NewPayloadRequest(object):
10041004
versioned_hashes: Sequence[VersionedHash]
10051005
parent_beacon_block_root: Root
10061006
execution_requests: ExecutionRequests # [New in Electra]
1007+
target_blobs_per_block: uint64 # [New in Electra:EIP7742]
10071008
```
10081009

10091010
#### Engine APIs
@@ -1058,7 +1059,7 @@ def verify_and_notify_new_payload(self: ExecutionEngine,
10581059
execution_payload = new_payload_request.execution_payload
10591060
parent_beacon_block_root = new_payload_request.parent_beacon_block_root
10601061
execution_requests_list = get_execution_requests_list(new_payload_request.execution_requests) # [New in Electra]
1061-
target_blobs_per_block = MAX_BLOBS_PER_BLOCK // 2 # [New in Electra:EIP7742]
1062+
target_blobs_per_block = new_payload_request.target_blobs_per_block # [New in Electra:EIP7742]
10621063

10631064
if b'' in execution_payload.transactions:
10641065
return False
@@ -1241,6 +1242,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
12411242
versioned_hashes=versioned_hashes,
12421243
parent_beacon_block_root=state.latest_block_header.parent_root,
12431244
execution_requests=body.execution_requests, # [New in Electra]
1245+
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, # [New in Electra:EIP7742]
12441246
)
12451247
)
12461248
# Cache execution payload header

0 commit comments

Comments
 (0)