func (node *ShardBlockNode) GetAncestorAtHeight(height uint64) *ShardBlockNode {
	if node.Height < height {
		return nil
	}

	current := node

	for current != nil && height < current.Height {
		current = current.Parent
	}

	return current
}
// GetAncestorAtHeight gets the first block node that occurred at a certain height.
GetAncestorAtHeight gets the first block node that occurred at a certain height.
// GetAncestorAtHeight gets the first block node that occurred at a certain height .
func (node *ShardBlockNode) GetAncestorAtHeight(height uint64) *ShardBlockNode {
	if node.Height < height {
		return nil
	}
	current := node
	for current != nil && height < current.Height {
		current = current.Parent
	}
	return current
}
func ( node * ShardBlockNode ) GetAncestorAtHeight ( height uint64 ) * ShardBlockNode { if node . Height < height { return nil } current := node for current != nil && height < current . Height { current = current . Parent } return current }
GetAncestorAtHeight gets the first block node that occurred at a certain height.
GetAncestorAtHeight gets the first block node that occurred at a certain height .