From 83335144223dfd0bbe2faef2ea5899a1bbbe4bea Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 19 Nov 2021 09:26:43 -0700 Subject: [PATCH] Update specs/merge/validator.md --- specs/merge/validator.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/specs/merge/validator.md b/specs/merge/validator.md index 0d1344bfc..6bd9217ca 100644 --- a/specs/merge/validator.md +++ b/specs/merge/validator.md @@ -49,11 +49,10 @@ def get_pow_block_at_terminal_total_difficulty(pow_chain: Dict[Hash32, PowBlock] # If genesis block, no parent exists so reaching TTD alone qualifies as valid terminal block if block.parent_hash == Hash32(): return block - else: - parent = pow_chain[block.parent_hash] - parent_reached_ttd = parent.total_difficulty >= TERMINAL_TOTAL_DIFFICULTY - if not parent_reached_ttd: - return block + parent = pow_chain[block.parent_hash] + parent_reached_ttd = parent.total_difficulty >= TERMINAL_TOTAL_DIFFICULTY + if not parent_reached_ttd: + return block return None ```