@@ -230,11 +230,11 @@ def get_forkchoice_store(anchor_state: BeaconState, anchor_block: BeaconBlock) -
230230 unrealized_finalized_checkpoint = finalized_checkpoint,
231231 proposer_boost_root = proposer_boost_root,
232232 equivocating_indices = set (),
233- blocks = {anchor_root: copy(anchor_block )},
234- block_states = {anchor_root: copy(anchor_state )},
233+ blocks = {anchor_root: anchor_block. copy()},
234+ block_states = {anchor_root: anchor_state. copy()},
235235 # [New in Gloas:EIP7732]
236236 block_timeliness = {anchor_root: [True , True ]},
237- checkpoint_states = {justified_checkpoint: copy(anchor_state )},
237+ checkpoint_states = {justified_checkpoint: anchor_state. copy()},
238238 latest_messages = {},
239239 unrealized_justifications = {anchor_root: justified_checkpoint},
240240 # [New in Gloas:EIP7732]
@@ -666,7 +666,7 @@ def verify_execution_payload_envelope(
666666 assert verify_execution_payload_envelope_signature(state, signed_envelope)
667667
668668 # Verify consistency with the beacon block
669- header = copy( state.latest_block_header)
669+ header = state.latest_block_header.copy( )
670670 header.state_root = hash_tree_root(state)
671671 assert envelope.beacon_block_root == hash_tree_root(header)
672672 assert envelope.parent_beacon_block_root == state.latest_block_header.parent_root
@@ -1030,7 +1030,7 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None:
10301030 assert store.finalized_checkpoint.root == finalized_checkpoint_block
10311031
10321032 # Make a copy of the state to avoid mutability issues
1033- state = copy( store.block_states[block.parent_root])
1033+ state = store.block_states[block.parent_root].copy( )
10341034
10351035 # Check the block is valid and compute the post-state
10361036 state_transition(state, signed_block, validate_result = True )
0 commit comments