From b357e43aab037e8a7f3fd5dced3046f2be765848 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 22 Jan 2020 14:31:23 -0700 Subject: [PATCH] clarifying comment on call to get_ancestor in on_block --- specs/phase0/fork-choice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/phase0/fork-choice.md b/specs/phase0/fork-choice.md index 39d9bd402..a69252a37 100644 --- a/specs/phase0/fork-choice.md +++ b/specs/phase0/fork-choice.md @@ -283,7 +283,7 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None: # Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor) finalized_slot = compute_start_slot_at_epoch(store.finalized_checkpoint.epoch) assert block.slot > finalized_slot - # Check block is a descendant of the finalized block + # Check block is a descendant of the finalized block at the checkpoint finalized slot assert get_ancestor(store, hash_tree_root(block), finalized_slot) == store.finalized_checkpoint.root # Check the block is valid and compute the post-state