From 8737e69c212912ff5aa53bc15f3eb78fafaca6d2 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Tue, 28 May 2024 10:39:35 +0200 Subject: [PATCH] use execution_witness_root in header --- specs/_features/eip6800/beacon-chain.md | 2 +- specs/_features/eip6800/fork.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/_features/eip6800/beacon-chain.md b/specs/_features/eip6800/beacon-chain.md index 8c93729b8..ab935cb87 100644 --- a/specs/_features/eip6800/beacon-chain.md +++ b/specs/_features/eip6800/beacon-chain.md @@ -212,7 +212,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi transactions_root=hash_tree_root(payload.transactions), withdrawals_root=hash_tree_root(payload.withdrawals), excess_data_gas=payload.excess_data_gas, - execution_witness=payload.execution_witness, # [New in EIP6800] + execution_witness_root=hash_tree_root(payload.execution_witness), # [New in EIP6800] ) ``` diff --git a/specs/_features/eip6800/fork.md b/specs/_features/eip6800/fork.md index 9c6df2f16..74f143f59 100644 --- a/specs/_features/eip6800/fork.md +++ b/specs/_features/eip6800/fork.md @@ -91,7 +91,7 @@ def upgrade_to_eip6800(pre: deneb.BeaconState) -> BeaconState: block_hash=pre.latest_execution_payload_header.block_hash, transactions_root=pre.latest_execution_payload_header.transactions_root, withdrawals_root=pre.latest_execution_payload_header.withdrawals_root, - execution_witness=ExecutionWitness([], []) # New in eip6800 + execution_witness_root=hash_tree_root(ExecutionWitness([], [])) # New in eip6800 ) post = BeaconState( # Versioning