From 7f64757b5147174fe0bbb7943689b3a455644b27 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Thu, 3 Jun 2021 16:08:56 +0600 Subject: [PATCH] Fix Optional[TransitionStore] issue to satisfy linter --- specs/merge/fork-choice.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/merge/fork-choice.md b/specs/merge/fork-choice.md index 19f0db8ae..1a8786468 100644 --- a/specs/merge/fork-choice.md +++ b/specs/merge/fork-choice.md @@ -126,8 +126,7 @@ def on_block(store: Store, signed_block: SignedBeaconBlock, transition_store: Tr assert get_ancestor(store, block.parent_root, finalized_slot) == store.finalized_checkpoint.root # [New in Merge] - is_transition_store_initialized = (transition_store is not None) - if is_transition_store_initialized and is_transition_block(pre_state, block): + if (transition_store is not None) and is_transition_block(pre_state, block): # Delay consideration of block until PoW block is processed by the PoW node pow_block = get_pow_block(block.body.execution_payload.parent_hash) assert pow_block.is_processed