fixed typo in on_block() definition
This commit is contained in:
parent
981b05afb0
commit
c51e67a059
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue