From ed433c8a3a70dfef46f7b706314e8bb460793fe4 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Fri, 31 Jul 2020 05:48:34 -0700 Subject: [PATCH] [cmd] further fix node.sh --- scripts/node.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/node.sh b/scripts/node.sh index ead08a05e..9a23db1f8 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -789,15 +789,10 @@ do fi if [ ! -z "${pprof}" ]; then args+=( - --pprof "${pprof}" + --pprof "${pprof}" ) fi - if [ ! ${staking_mode} ] - then - args+=(--run.legacy) - fi - # backward compatible with older harmony node software case "${node_type}" in validator) @@ -806,6 +801,12 @@ do args+=( --shard_id="${shard_id}" ) + + if [ ${staking_mode} == "false" ]; then + args+=( + --run.legacy + ) + fi ;; esac ;;