[cmd] updated node.sh for double dash

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

@ -743,50 +743,49 @@ while :
do
msg "############### Running Harmony Process ###############"
args=(
-bootnodes "${BN_MA}"
-ip "${PUB_IP}"
-port "${NODE_PORT}"
-network_type="${network_type}"
-dns_zone="${dns_zone}"
-blacklist="${blacklist}"
-min_peers="${minpeers}"
-max_bls_keys_per_node="${max_bls_keys_per_node}"
-broadcast_invalid_tx="${broadcast_invalid_tx}"
-verbosity="${log_level}"
-block_period="5"
--bootnodes "${BN_MA}"
--ip "${PUB_IP}"
--port "${NODE_PORT}"
--network_type="${network_type}"
--dns_zone="${dns_zone}"
--blacklist="${blacklist}"
--min_peers="${minpeers}"
--max_bls_keys_per_node="${max_bls_keys_per_node}"
--broadcast_invalid_tx="${broadcast_invalid_tx}"
--verbosity="${log_level}"
)
args+=(
-is_archival="${archival}"
--is_archival="${archival}"
)
if [ ! -z "$BLSKEYFILES" ]; then
args+=(
-blskey_file "${BLSKEYFILES}"
--blskey_file "${BLSKEYFILES}"
)
fi
if [ ! -z "$blsfolder" ]; then
args+=(
-blsfolder "${blsfolder}"
--blsfolder "${blsfolder}"
)
fi
if [ ! -z "$blspass" ]; then
args+=(
-blspass "file:${blspass}"
--blspass "file:${blspass}"
)
else
if $no_bls_pass_prompt; then
args+=(
-blspass no-prompt
--blspass no-prompt
)
fi
fi
if ${public_rpc}; then
args+=(
-public_rpc
--public_rpc
)
fi
if [ ! -z "${pprof}" ]; then
args+=(
-pprof "${pprof}"
--pprof "${pprof}"
)
fi
@ -796,19 +795,19 @@ do
case "${shard_id}" in
?*)
args+=(
-shard_id="${shard_id}"
--shard_id="${shard_id}"
)
if ${staking_mode}
then
args+=(-staking="${staking_mode}")
args+=(--staking="${staking_mode}")
fi
;;
esac
;;
explorer)
args+=(
-node_type="${node_type}"
-shard_id="${shard_id}"
--node_type="${node_type}"
--shard_id="${shard_id}"
)
;;
esac

Loading…
Cancel
Save