Remove randao_reveal from validator.md

This commit is contained in:
Mikhail Kalinin 2021-09-16 11:28:04 +06:00
parent 02057cb13e
commit 6f78e6a3ee

View File

@ -77,7 +77,6 @@ def get_pow_block_at_total_difficulty(total_difficulty: uint256, pow_chain: Sequ
def produce_execution_payload(state: BeaconState, def produce_execution_payload(state: BeaconState,
parent_hash: Hash32, parent_hash: Hash32,
randao_reveal: BLSSignature,
execution_engine: ExecutionEngine) -> ExecutionPayload: execution_engine: ExecutionEngine) -> ExecutionPayload:
timestamp = compute_timestamp_at_slot(state, state.slot) timestamp = compute_timestamp_at_slot(state, state.slot)
randao_mix = get_randao_mix(state, get_current_epoch(state)) randao_mix = get_randao_mix(state, get_current_epoch(state))
@ -86,7 +85,6 @@ def produce_execution_payload(state: BeaconState,
def get_execution_payload(state: BeaconState, def get_execution_payload(state: BeaconState,
transition_store: TransitionStore, transition_store: TransitionStore,
randao_reveal: BLSSignature,
execution_engine: ExecutionEngine, execution_engine: ExecutionEngine,
pow_chain: Sequence[PowBlock]) -> ExecutionPayload: pow_chain: Sequence[PowBlock]) -> ExecutionPayload:
if not is_merge_complete(state): if not is_merge_complete(state):
@ -96,9 +94,9 @@ def get_execution_payload(state: BeaconState,
return ExecutionPayload() return ExecutionPayload()
else: else:
# Signify merge via producing on top of the last PoW block # Signify merge via producing on top of the last PoW block
return produce_execution_payload(state, terminal_pow_block.block_hash, randao_reveal, execution_engine) return produce_execution_payload(state, terminal_pow_block.block_hash, execution_engine)
# Post-merge, normal payload # Post-merge, normal payload
parent_hash = state.latest_execution_payload_header.block_hash parent_hash = state.latest_execution_payload_header.block_hash
return produce_execution_payload(state, parent_hash, randao_reveal, execution_engine) return produce_execution_payload(state, parent_hash, execution_engine)
``` ```