@@ -990,8 +990,8 @@ class NewPayloadRequest(object):
990
990
``` python
991
991
def notify_new_payload (self : ExecutionEngine,
992
992
execution_payload : ExecutionPayload,
993
- execution_requests : ExecutionRequests ,
994
- parent_beacon_block_root : Root ) -> bool :
993
+ parent_beacon_block_root : Root ,
994
+ execution_requests : ExecutionRequests ) -> bool :
995
995
"""
996
996
Return ``True`` if and only if ``execution_payload`` and ``execution_requests``
997
997
are valid with respect to ``self.execution_state``.
@@ -1011,8 +1011,8 @@ def verify_and_notify_new_payload(self: ExecutionEngine,
1011
1011
Return ``True`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.
1012
1012
"""
1013
1013
execution_payload = new_payload_request.execution_payload
1014
- execution_requests = new_payload_request.execution_requests # [New in Electra]
1015
1014
parent_beacon_block_root = new_payload_request.parent_beacon_block_root
1015
+ execution_requests = new_payload_request.execution_requests # [New in Electra]
1016
1016
1017
1017
if not self .is_valid_block_hash(execution_payload, parent_beacon_block_root):
1018
1018
return False
@@ -1022,9 +1022,8 @@ def verify_and_notify_new_payload(self: ExecutionEngine,
1022
1022
1023
1023
# [Modified in Electra]
1024
1024
if not self .notify_new_payload(
1025
- execution_payload,
1026
- execution_requests,
1027
- parent_beacon_block_root):
1025
+ parent_beacon_block_root,
1026
+ execution_requests):
1028
1027
return False
1029
1028
1030
1029
return True
@@ -1160,9 +1159,9 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
1160
1159
assert execution_engine.verify_and_notify_new_payload(
1161
1160
NewPayloadRequest(
1162
1161
execution_payload = payload,
1163
- execution_requests = body.execution_requests, # [New in Electra]
1164
1162
versioned_hashes = versioned_hashes,
1165
1163
parent_beacon_block_root = state.latest_block_header.parent_root,
1164
+ execution_requests = body.execution_requests, # [New in Electra]
1166
1165
)
1167
1166
)
1168
1167
# Cache execution payload header
0 commit comments