Update specs/merge/validator.md
This commit is contained in:
parent
28762096d3
commit
8333514422
|
@ -49,7 +49,6 @@ 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 genesis block, no parent exists so reaching TTD alone qualifies as valid terminal block
|
||||||
if block.parent_hash == Hash32():
|
if block.parent_hash == Hash32():
|
||||||
return block
|
return block
|
||||||
else:
|
|
||||||
parent = pow_chain[block.parent_hash]
|
parent = pow_chain[block.parent_hash]
|
||||||
parent_reached_ttd = parent.total_difficulty >= TERMINAL_TOTAL_DIFFICULTY
|
parent_reached_ttd = parent.total_difficulty >= TERMINAL_TOTAL_DIFFICULTY
|
||||||
if not parent_reached_ttd:
|
if not parent_reached_ttd:
|
||||||
|
|
Loading…
Reference in New Issue