@@ -1124,7 +1124,7 @@ proc process_execution_payload*(
11241124
11251125 ok ()
11261126
1127- # https://github.com/ethereum/consensus-specs/blob/v1.6.0-beta.0 /specs/gloas/beacon-chain.md#new-process_execution_payload
1127+ # https://github.com/ethereum/consensus-specs/blob/v1.6.1 /specs/gloas/beacon-chain.md#new-process_execution_payload
11281128proc process_execution_payload * (
11291129 cfg: RuntimeConfig , state: var gloas.HashedBeaconState ,
11301130 signed_envelope: SignedExecutionPayloadEnvelope ,
@@ -1163,6 +1163,8 @@ proc process_execution_payload*(
11631163 if committed_bid.blob_kzg_commitments_root !=
11641164 hash_tree_root (envelope.blob_kzg_commitments):
11651165 return err (" process_execution_payload: blob KZG commitments root mismatch" )
1166+ if not (committed_bid.prev_randao == payload.prev_randao):
1167+ return err (" process_execution_payload: prev_randao mismatch" )
11661168
11671169 # Verify the withdrawals root
11681170 if hash_tree_root (payload.withdrawals) != state.data.latest_withdrawals_root:
@@ -1180,11 +1182,6 @@ proc process_execution_payload*(
11801182 if payload.parent_hash != state.data.latest_block_hash:
11811183 return err (" process_execution_payload: parent hash mismatch" )
11821184
1183- # Verify prev_randao
1184- if payload.prev_randao !=
1185- get_randao_mix (state.data, get_current_epoch (state.data)):
1186- return err (" process_execution_payload: prev_randao mismatch" )
1187-
11881185 # Verify timestamp
11891186 if payload.timestamp != cfg.timeParams
11901187 .compute_timestamp_at_slot (state.data, state.data.slot):
0 commit comments