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)) node.run_ssh("mkdir zlp")
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()