11 lines
347 B
Python
11 lines
347 B
Python
def node_height_at_least(node, h):
|
|
if node.full_node.blockchain.get_peak() is not None:
|
|
return node.full_node.blockchain.get_peak().height >= h
|
|
return False
|
|
|
|
|
|
def node_height_exactly(node, h):
|
|
if node.full_node.blockchain.get_peak() is not None:
|
|
return node.full_node.blockchain.get_peak().height == h
|
|
return False
|