Introduce delegate-stake.sh for adding stake to a validator.sh (#5380)

This commit is contained in:
Michael Vines
2019-08-01 13:48:00 -07:00
committed by GitHub
parent 4d14abbd04
commit 870503ee36
4 changed files with 150 additions and 36 deletions

View File

@ -199,10 +199,8 @@ local|tar|skip)
args+=(
--blockstream /tmp/solana-blockstream.sock
--no-voting
--stake 0
)
else
args+=(--stake "$stake")
args+=(--enable-rpc-exit)
if [[ -n $internalNodesLamports ]]; then
args+=(--node-lamports "$internalNodesLamports")
@ -261,6 +259,10 @@ local|tar|skip)
pid=$!
oom_score_adj "$pid" 1000
waitForNodeToInit
if [[ $skipSetup != true && $nodeType != blockstreamer ]]; then
./multinode-demo/delegate-stake.sh $stake
fi
;;
replicator)
if [[ $deployMethod != skip ]]; then