@@ -212,8 +212,8 @@ top of a `state` MUST take the following actions in order to construct the
212212 - The ` bid.slot ` is for the proposal block slot.
213213 - The ` bid.parent_block_hash ` equals
214214 ` state.latest_execution_payload_bid.block_hash ` if
215- ` should_build_on_full(store, head) ` is true, otherwise
216- ` state.latest_execution_payload_bid.parent_block_hash ` .
215+ ` should_build_on_full(store, head, get_current_slot(store)) ` is true,
216+ otherwise ` state.latest_execution_payload_bid.parent_block_hash ` .
217217 - The ` bid.parent_block_root ` equals the current block's ` parent_root ` .
218218 - The ` bid.prev_randao ` equals
219219 ` get_randao_mix(state, get_current_epoch(state)) ` .
@@ -248,9 +248,9 @@ parent's execution payload. The proposer constructs this field as follows:
248248
249249- If the parent block is pre-Gloas (first Gloas block), set
250250 ` parent_execution_requests ` to an empty ` ExecutionRequests() ` .
251- - If ` should_build_on_full(store, head) ` returns ` True ` (the proposer is
252- building on the parent's full payload), set ` parent_execution_requests ` to
253- ` store.payloads[head.root].execution_requests ` .
251+ - If ` should_build_on_full(store, head, get_current_slot(store)) ` returns ` True `
252+ (the proposer is building on the parent's full payload), set
253+ ` parent_execution_requests ` to ` store.payloads[head.root].execution_requests ` .
254254- Otherwise (the proposer is building on the parent's empty variant), set
255255 ` parent_execution_requests ` to an empty ` ExecutionRequests() ` .
256256
@@ -319,10 +319,11 @@ def get_execution_requests(execution_requests_list: Sequence[bytes]) -> Executio
319319##### ExecutionPayload
320320
321321* Note* : ` prepare_execution_payload ` is modified to build on the parent's full
322- payload or its empty variant, as decided by ` should_build_on_full(store, head) ` ,
323- which determines the withdrawals source and the execution head for the new
324- payload. When building on a full parent, ` apply_parent_execution_payload ` is
325- called so that withdrawals are computed against the post-processing state.
322+ payload or its empty variant, as decided by
323+ ` should_build_on_full(store, head, get_current_slot(store)) ` , which determines
324+ the withdrawals source and the execution head for the new payload. When building
325+ on a full parent, ` apply_parent_execution_payload ` is called so that withdrawals
326+ are computed against the post-processing state.
326327
327328``` python
328329def prepare_execution_payload (
@@ -340,7 +341,7 @@ def prepare_execution_payload(
340341) -> Optional[PayloadId]:
341342 # [New in Gloas:EIP7732]
342343 parent_bid = state.latest_execution_payload_bid
343- if should_build_on_full(store, head):
344+ if should_build_on_full(store, head, get_current_slot(store) ):
344345 envelope = store.payloads[head.root]
345346 # Make a copy of the state to avoid mutability issues
346347 state = copy(state)
0 commit comments