Rewrite multinode-demo/replicator.sh to avoid fullnode.sh (#5299)

This commit is contained in:
Michael Vines
2019-07-26 19:00:34 -07:00
committed by GitHub
parent e2c9d87d91
commit 252257fe66
4 changed files with 163 additions and 158 deletions

View File

@ -273,22 +273,16 @@ local|tar|skip)
fi
args=(
"$entrypointIp":~/solana "$entrypointIp:8001"
--entrypoint "$entrypointIp:8001"
)
if [[ $airdropsEnabled != true ]]; then
args+=(--no-airdrop)
echo "TODO: replicators not supported without airdrops"
# TODO: need to provide the `--identity` argument to an existing system
# account with lamports in it
exit 1
fi
if [[ -n $internalNodesLamports ]] ; then
args+=(--node-lamports "$internalNodesLamports")
fi
if [[ $skipSetup != true ]]; then
./multinode-demo/clear-config.sh
fi
# shellcheck disable=SC2206 # Don't want to double quote $extraNodeArgs
args+=($extraNodeArgs)
nohup ./multinode-demo/replicator.sh "${args[@]}" > fullnode.log 2>&1 &
sleep 1
;;