mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-03 06:13:31 +00:00
minor fixes
This commit is contained in:
parent
2af6e7d22c
commit
bb7ce4fa6e
@ -616,7 +616,7 @@ def process_execution_payload(state: BeaconState,
|
|||||||
assert envelope.beacon_block_root == hash_tree_root(state.latest_block_header)
|
assert envelope.beacon_block_root == hash_tree_root(state.latest_block_header)
|
||||||
|
|
||||||
# Verify consistency with the committed header
|
# Verify consistency with the committed header
|
||||||
committed_header = state.execution_payload_header
|
committed_header = state.latest_execution_payload_header
|
||||||
assert envelope.builder_index == committed_header.builder_index
|
assert envelope.builder_index == committed_header.builder_index
|
||||||
assert committed_header.blob_kzg_commitments_root == hash_tree_root(envelope.blob_kzg_commitments)
|
assert committed_header.blob_kzg_commitments_root == hash_tree_root(envelope.blob_kzg_commitments)
|
||||||
|
|
||||||
|
@ -140,6 +140,8 @@ def get_forkchoice_store(anchor_state: BeaconState, anchor_block: BeaconBlock) -
|
|||||||
block_states={anchor_root: copy(anchor_state)},
|
block_states={anchor_root: copy(anchor_state)},
|
||||||
checkpoint_states={justified_checkpoint: copy(anchor_state)},
|
checkpoint_states={justified_checkpoint: copy(anchor_state)},
|
||||||
unrealized_justifications={anchor_root: justified_checkpoint},
|
unrealized_justifications={anchor_root: justified_checkpoint},
|
||||||
|
execution_payload_states={anchor_root: copy(anchor_state)}, # [New in EIP-7732]
|
||||||
|
ptc_vote={anchor_root: Vector[uint8, PTC_SIZE]()},
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user