@@ -957,7 +957,8 @@ type SomeDenebBeaconBlockBody =
957957
958958# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/deneb/beacon-chain.md#process_execution_payload
959959proc process_execution_payload * (
960- state: var deneb.BeaconState , body: SomeDenebBeaconBlockBody ,
960+ cfg: RuntimeConfig , state: var deneb.BeaconState ,
961+ body: SomeDenebBeaconBlockBody ,
961962 notify_new_payload: deneb.ExecutePayload ): Result [void , cstring ] =
962963 template payload : auto = body.execution_payload
963964
@@ -976,7 +977,7 @@ proc process_execution_payload*(
976977 return err (" process_execution_payload: invalid timestamp" )
977978
978979 # [New in Deneb] Verify commitments are under limit
979- if not (lenu64 (body.blob_kzg_commitments) <= MAX_BLOBS_PER_BLOCK ):
980+ if not (lenu64 (body.blob_kzg_commitments) <= cfg. MAX_BLOBS_PER_BLOCK ):
980981 return err (" process_execution_payload: too many KZG commitments" )
981982
982983 # Verify the execution payload is valid
@@ -1329,7 +1330,7 @@ proc process_block*(
13291330 if is_execution_enabled (state, blck.body):
13301331 ? process_withdrawals (state, blck.body.execution_payload)
13311332 ? process_execution_payload (
1332- state, blck.body,
1333+ cfg, state, blck.body,
13331334 func (_: deneb.ExecutionPayload ): bool = true ) # [Modified in Deneb]
13341335 ? process_randao (state, blck.body, flags, cache)
13351336 ? process_eth1_data (state, blck.body)
0 commit comments