Add missing timestamp in validator.md/get_execution_payload

This commit is contained in:
Mikhail Kalinin 2021-04-09 22:50:37 +06:00
parent ac175fd325
commit c4c4dade27

View File

@ -62,7 +62,8 @@ def get_execution_payload(state: BeaconState) -> ExecutionPayload:
return ExecutionPayload()
else:
# Signify merge via producing on top of the last PoW block
return produce_execution_payload(pow_block.block_hash)
timestamp = compute_time_at_slot(state, state.slot)
return produce_execution_payload(pow_block.block_hash, timestamp)
# Post-merge, normal payload
execution_parent_hash = state.latest_execution_payload_header.block_hash