Skip to content

Commit 8737e69

Browse files
authored
use execution_witness_root in header
1 parent 744ae2e commit 8737e69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

specs/_features/eip6800/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
212212
transactions_root=hash_tree_root(payload.transactions),
213213
withdrawals_root=hash_tree_root(payload.withdrawals),
214214
excess_data_gas=payload.excess_data_gas,
215-
execution_witness=payload.execution_witness, # [New in EIP6800]
215+
execution_witness_root=hash_tree_root(payload.execution_witness), # [New in EIP6800]
216216
)
217217
```
218218

specs/_features/eip6800/fork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def upgrade_to_eip6800(pre: deneb.BeaconState) -> BeaconState:
9191
block_hash=pre.latest_execution_payload_header.block_hash,
9292
transactions_root=pre.latest_execution_payload_header.transactions_root,
9393
withdrawals_root=pre.latest_execution_payload_header.withdrawals_root,
94-
execution_witness=ExecutionWitness([], []) # New in eip6800
94+
execution_witness_root=hash_tree_root(ExecutionWitness([], [])) # New in eip6800
9595
)
9696
post = BeaconState(
9797
# Versioning

0 commit comments

Comments
 (0)