use execution_witness_root in header
This commit is contained in:
parent
744ae2e687
commit
8737e69c21
|
@ -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]
|
||||
)
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue