minor fixes

This commit is contained in:
Potuz 2024-07-05 09:12:04 -03:00
parent 2af6e7d22c
commit bb7ce4fa6e
2 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,7 @@ def process_execution_payload(state: BeaconState,
assert envelope.beacon_block_root == hash_tree_root(state.latest_block_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 committed_header.blob_kzg_commitments_root == hash_tree_root(envelope.blob_kzg_commitments)

View File

@ -140,6 +140,8 @@ def get_forkchoice_store(anchor_state: BeaconState, anchor_block: BeaconBlock) -
block_states={anchor_root: copy(anchor_state)},
checkpoint_states={justified_checkpoint: copy(anchor_state)},
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]()},
)
```