fixed typo in on_block() definition

This commit is contained in:
David Theodore 2022-07-29 00:13:32 -07:00
parent 981b05afb0
commit c51e67a059
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None:
assert block.parent_root in store.block_states assert block.parent_root in store.block_states
# Make a copy of the state to avoid mutability issues # Make a copy of the state to avoid mutability issues
pre_state = copy(store.block_states[block.parent_root]) pre_state = copy(store.block_states[block.parent_root])
# Blocks cannot be in the future. If they are, their consideration must be delayed until the are in the past. # Blocks cannot be in the future. If they are, their consideration must be delayed until they are in the past.
assert get_current_slot(store) >= block.slot assert get_current_slot(store) >= block.slot
# Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor) # Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor)

View File

@ -406,7 +406,7 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None:
assert block.parent_root in store.block_states assert block.parent_root in store.block_states
# Make a copy of the state to avoid mutability issues # Make a copy of the state to avoid mutability issues
pre_state = copy(store.block_states[block.parent_root]) pre_state = copy(store.block_states[block.parent_root])
# Blocks cannot be in the future. If they are, their consideration must be delayed until the are in the past. # Blocks cannot be in the future. If they are, their consideration must be delayed until they are in the past.
assert get_current_slot(store) >= block.slot assert get_current_slot(store) >= block.slot
# Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor) # Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor)