Update default node balance to 500 SOL and default stake to 1 SOL (#7411)
This commit is contained in:
parent
7d6777a96f
commit
12d471e2da
|
@ -487,7 +487,7 @@ deploy() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $INTERNAL_NODES_LAMPORTS ]]; then
|
if [[ -z $INTERNAL_NODES_LAMPORTS ]]; then
|
||||||
maybeInternalNodesLamports="--internal-nodes-lamports 2000000000" # 2 SOL
|
maybeInternalNodesLamports="--internal-nodes-lamports 500000000000" # 500 SOL
|
||||||
elif [[ $INTERNAL_NODES_LAMPORTS == skip ]]; then
|
elif [[ $INTERNAL_NODES_LAMPORTS == skip ]]; then
|
||||||
maybeInternalNodesLamports=""
|
maybeInternalNodesLamports=""
|
||||||
else
|
else
|
||||||
|
|
|
@ -8,7 +8,7 @@ here=$(dirname "$0")
|
||||||
# shellcheck source=multinode-demo/common.sh
|
# shellcheck source=multinode-demo/common.sh
|
||||||
source "$here"/common.sh
|
source "$here"/common.sh
|
||||||
|
|
||||||
stake_lamports=500000000 # default number of lamports to assign as stake (0.5 SOL)
|
stake_lamports=1000000000 # default number of lamports to assign as stake (1 SOL)
|
||||||
url=http://127.0.0.1:8899 # default RPC url
|
url=http://127.0.0.1:8899 # default RPC url
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
|
|
@ -6,6 +6,16 @@ here=$(dirname "$0")
|
||||||
# shellcheck source=multinode-demo/common.sh
|
# shellcheck source=multinode-demo/common.sh
|
||||||
source "$here"/common.sh
|
source "$here"/common.sh
|
||||||
|
|
||||||
|
args=()
|
||||||
|
airdrops_enabled=1
|
||||||
|
node_lamports=500000000000 # 500 SOL: number of lamports to airdrop the node for transaction fees and vote account rent exemption (ignored if airdrops_enabled=0)
|
||||||
|
label=
|
||||||
|
identity_keypair_path=
|
||||||
|
voting_keypair_path=
|
||||||
|
no_restart=0
|
||||||
|
gossip_entrypoint=
|
||||||
|
ledger_dir=
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
if [[ -n $1 ]]; then
|
if [[ -n $1 ]]; then
|
||||||
echo "$*"
|
echo "$*"
|
||||||
|
@ -23,7 +33,7 @@ OPTIONS:
|
||||||
--init-complete-file FILE - create this file, if it doesn't already exist, once node initialization is complete
|
--init-complete-file FILE - create this file, if it doesn't already exist, once node initialization is complete
|
||||||
--label LABEL - Append the given label to the configuration files, useful when running
|
--label LABEL - Append the given label to the configuration files, useful when running
|
||||||
multiple validators in the same workspace
|
multiple validators in the same workspace
|
||||||
--node-lamports LAMPORTS - Number of lamports this node has been funded from the genesis config
|
--node-lamports LAMPORTS - Number of lamports this node has been funded from the genesis config (default: $node_lamports)
|
||||||
--no-voting - start node without vote signer
|
--no-voting - start node without vote signer
|
||||||
--rpc-port port - custom RPC port for this node
|
--rpc-port port - custom RPC port for this node
|
||||||
--no-restart - do not restart the node if it exits
|
--no-restart - do not restart the node if it exits
|
||||||
|
@ -33,16 +43,6 @@ EOF
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
args=()
|
|
||||||
airdrops_enabled=1
|
|
||||||
node_lamports=500000000000 # 500 SOL: number of lamports to airdrop the node for transaction fees and vote account rent exemption (ignored if airdrops_enabled=0)
|
|
||||||
label=
|
|
||||||
identity_keypair_path=
|
|
||||||
voting_keypair_path=
|
|
||||||
no_restart=0
|
|
||||||
gossip_entrypoint=
|
|
||||||
ledger_dir=
|
|
||||||
|
|
||||||
positional_args=()
|
positional_args=()
|
||||||
while [[ -n $1 ]]; do
|
while [[ -n $1 ]]; do
|
||||||
if [[ ${1:0:1} = - ]]; then
|
if [[ ${1:0:1} = - ]]; then
|
||||||
|
|
|
@ -28,7 +28,6 @@ gpuMode="${19:-auto}"
|
||||||
GEOLOCATION_API_KEY="${20}"
|
GEOLOCATION_API_KEY="${20}"
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
|
|
||||||
missing() {
|
missing() {
|
||||||
echo "Error: $1 not specified"
|
echo "Error: $1 not specified"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -388,7 +387,7 @@ EOF
|
||||||
args+=(--keypair config/validator-identity.json)
|
args+=(--keypair config/validator-identity.json)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
multinode-demo/delegate-stake.sh "${args[@]}"
|
multinode-demo/delegate-stake.sh "${args[@]}" "$internalNodesStakeLamports"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $skipSetup != true ]]; then
|
if [[ $skipSetup != true ]]; then
|
||||||
|
|
Loading…
Reference in New Issue