Update specs/core/0_fork-choice.md

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
terence tsao 2019-07-24 19:26:39 -07:00 committed by protolambda
parent bb5a721707
commit 34ba645f7e
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def on_block(store: Store, block: BeaconBlock) -> None:
# Check that block is later than the finalized epoch slot # Check that block is later than the finalized epoch slot
assert block.slot > compute_start_slot_at_epoch(store.finalized_checkpoint.epoch) assert block.slot > compute_start_slot_at_epoch(store.finalized_checkpoint.epoch)
# Check the block is valid and compute the post-state # Check the block is valid and compute the post-state
state = state_transition(pre_state, block, true) state = state_transition(pre_state, block, True)
# Add new state for this block to the store # Add new state for this block to the store
store.block_states[signing_root(block)] = state store.block_states[signing_root(block)] = state