fullnode positional arguments may now be mixed with optional arguments (#4151)

This commit is contained in:
Michael Vines
2019-05-03 20:49:24 -07:00
committed by GitHub
parent 297328ff9a
commit 586fb15c2c
2 changed files with 61 additions and 53 deletions

View File

@ -106,6 +106,7 @@ local|tar)
--stake 0
)
else
args+=("$entrypointIp":~/solana "$entrypointIp:8001")
if $leaderRotation; then
args+=("--stake" "$stake")
else
@ -148,7 +149,6 @@ local|tar)
curl --head "$(curl ifconfig.io)"
fi
args+=("$entrypointIp":~/solana "$entrypointIp:8001")
./multinode-demo/fullnode.sh "${args[@]}" > fullnode.log 2>&1 &
;;
*)