Exemplo n.º 1
0
def upload_platon(node: Node, platon_bin):
    """
    Upload a binary file to the specified node
    :param node:
    :param platon_bin:
    :return:
    """
    node.run_ssh("rm -rf {}".format(node.remote_bin_file))
    node.upload_file(platon_bin, node.remote_bin_file)
    node.run_ssh("chmod +x {}".format(node.remote_bin_file))
    log.info(f"Node {node.node_mark} upload platon succeed")
    node.restart()
Exemplo n.º 2
0
 def restart(node: Node):
     return node.restart()