[cmd] further fix node.sh

pull/3278/head
Jacky Wang 4 years ago
parent d943f5b425
commit ed433c8a3a
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 13
      scripts/node.sh

@ -789,15 +789,10 @@ do
fi fi
if [ ! -z "${pprof}" ]; then if [ ! -z "${pprof}" ]; then
args+=( args+=(
--pprof "${pprof}" --pprof "${pprof}"
) )
fi fi
if [ ! ${staking_mode} ]
then
args+=(--run.legacy)
fi
# backward compatible with older harmony node software # backward compatible with older harmony node software
case "${node_type}" in case "${node_type}" in
validator) validator)
@ -806,6 +801,12 @@ do
args+=( args+=(
--shard_id="${shard_id}" --shard_id="${shard_id}"
) )
if [ ${staking_mode} == "false" ]; then
args+=(
--run.legacy
)
fi
;; ;;
esac esac
;; ;;

Loading…
Cancel
Save