Skip to content

Commit

Permalink
Update 0_fork-choice.md
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored and hwwhww committed Dec 3, 2019
1 parent d150e4a commit 0f4faf1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions specs/core/0_fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ def on_attestation(store: Store, attestation: Attestation) -> None:
# Use GENESIS_EPOCH for previous when genesis to avoid underflow
previous_epoch = current_epoch - 1 if current_epoch > GENESIS_EPOCH else GENESIS_EPOCH
assert target.epoch in [current_epoch, previous_epoch]
# Cannot calculate the current shuffling if have not seen the target
assert target.root in store.blocks

# Attestations target be for a known block. If target block is unknown, delay consideration until the block is found
assert target.root in store.blocks
Expand Down

0 comments on commit 0f4faf1

Please sign in to comment.