use execution_witness_root in header

This commit is contained in:
Guillaume Ballet 2024-05-28 10:39:35 +02:00 committed by GitHub
parent 744ae2e687
commit 8737e69c21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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]
)
```

View File

@ -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