Update specs/merge/validator.md
This commit is contained in:
parent
28762096d3
commit
8333514422
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue