xuperchain / xuperchain

A highly flexible blockchain architecture with great transaction performance.

Home Page:https://xuper.baidu.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在使用testnet开启节点的时候,需要一个一个开启,感觉比较慢

userInner opened this issue · comments

开启所有节点

`SER{{BTJ66ZADRH URX@VB

关闭所有节点

image
// 这里参考fisco的做法,使用shell脚本

开启所有节点

#!/bin/bash

LOG_INFO(){
    content=${1}
    echo -e "\033[32m[INFO] ${content}\033[0m"
}

    
dirs=($(ls -l ${SHELL_FOLDER} | awk '/^d/ {print $NF}'))
for dir in ${dirs[*]}
do
    echo ${dir}/conf/server.yaml
    if [[ -f "${dir}/conf/server.yaml" && -f "${dir}/control.sh" ]];then
        LOG_INFO "try to start ${dir}"
        cd ${dir}
        bash control.sh start
        cd ..
    fi    
done
wait

关闭所有节点

#!/bin/bash

LOG_INFO(){
    content=${1}
    echo -e "\033[32m[INFO] ${content}\033[0m"
}

    
dirs=($(ls -l ${SHELL_FOLDER} | awk '/^d/ {print $NF}'))
for dir in ${dirs[*]}
do
    echo ${dir}/conf/server.yaml
    if [[ -f "${dir}/conf/server.yaml" && -f "${dir}/control.sh" ]];then
        LOG_INFO "try to stop ${dir}"
        cd ${dir}
        bash control.sh stop
        cd ..
    fi    
done
wait

已提交,谢谢

https://github.com/xuperchain/xuperchain/blob/master/auto/control_all.sh @userInner
git checkout -b v5.3.0 v5.3.0
我在部署testnet没有看到这个脚本,我看deploy_testnet.sh 有复制的这个脚本,是因为这个分支的原因吗

commented

https://github.com/xuperchain/xuperchain/blob/master/auto/control_all.sh @userInner
git checkout -b v5.3.0 v5.3.0
我在部署testnet没有看到这个脚本,我看deploy_testnet.sh 有复制的这个脚本,是因为这个分支的原因吗

对的