Fix internal node lamport funding and staking allocation logic (#5192) (#5200)

automerge
This commit is contained in:
mergify[bot]
2019-07-19 12:28:27 -07:00
committed by Grimes
parent 4badf63cfd
commit 53c901471c
5 changed files with 118 additions and 46 deletions

View File

@@ -27,6 +27,7 @@ Start a validator or a replicator
--label LABEL - Append the given label to the configuration files, useful when running
multiple fullnodes in the same workspace
--stake LAMPORTS - Number of lamports to stake
--node-lamports LAMPORTS - Number of lamports this node has been funded from the genesis block
--no-voting - start node without vote signer
--rpc-port port - custom RPC port for this node
--no-restart - do not restart the node if it exits
@@ -217,6 +218,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --stake ]]; then
stake_lamports="$2"
shift 2
elif [[ $1 = --node-lamports ]]; then
node_lamports="$2"
shift 2
elif [[ $1 = --no-voting ]]; then
args+=("$1")
shift