genesis: rename mint account to faucet account and make it optional (#6990)
This commit is contained in:
@@ -61,7 +61,7 @@ Operate a configured testnet
|
||||
- Override the default --hashes-per-tick for the cluster
|
||||
--no-airdrop
|
||||
- If set, disables airdrops. Nodes must be funded in genesis config when airdrops are disabled.
|
||||
--lamports NUM_LAMPORTS_TO_MINT
|
||||
--faucet-lamports NUM_LAMPORTS_TO_MINT
|
||||
- Override the default 500000000000000000 lamports minted in genesis
|
||||
--internal-nodes-stake-lamports NUM_LAMPORTS_PER_NODE
|
||||
- Amount to stake internal nodes.
|
||||
@@ -172,7 +172,7 @@ while [[ -n $1 ]]; do
|
||||
elif [[ $1 = --target-lamports-per-signature ]]; then
|
||||
genesisOptions="$genesisOptions $1 $2"
|
||||
shift 2
|
||||
elif [[ $1 = --lamports ]]; then
|
||||
elif [[ $1 = --faucet-lamports ]]; then
|
||||
genesisOptions="$genesisOptions $1 $2"
|
||||
shift 2
|
||||
elif [[ $1 = --operating-mode ]]; then
|
||||
|
@@ -77,7 +77,7 @@ solana-bench-exchange)
|
||||
idle)
|
||||
# Add the mint keypair to idle clients for convenience
|
||||
net/scripts/rsync-retry.sh -vPrc \
|
||||
"$entrypointIp":~/solana/config/mint-keypair.json ~/solana/
|
||||
"$entrypointIp":~/solana/config/faucet-keypair.json ~/solana/
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
|
@@ -36,5 +36,5 @@ PATH="$HOME"/.cargo/bin:"$PATH"
|
||||
|
||||
set -x
|
||||
scripts/solana-install-deploy.sh \
|
||||
--keypair config/mint-keypair.json \
|
||||
--keypair config/faucet-keypair.json \
|
||||
localhost "$releaseChannel" "$updatePlatform"
|
||||
|
@@ -230,7 +230,7 @@ EOF
|
||||
args+=($genesisOptions)
|
||||
|
||||
if [[ -f net/keypairs/mint.json ]]; then
|
||||
export MINT_KEYPAIR=net/keypairs/mint.json
|
||||
export FAUCET_KEYPAIR=net/keypairs/mint.json
|
||||
fi
|
||||
if [[ -f net/keypairs/bootstrap-leader-identity.json ]]; then
|
||||
export BOOTSTRAP_LEADER_IDENTITY_KEYPAIR=net/keypairs/bootstrap-leader-identity.json
|
||||
@@ -312,13 +312,13 @@ EOF
|
||||
set -x
|
||||
# Add the mint keypair to validators for convenient access from tools
|
||||
# like bench-tps and add to blocktreamers to run a drone
|
||||
scp "$entrypointIp":~/solana/config/mint-keypair.json config/
|
||||
scp "$entrypointIp":~/solana/config/faucet-keypair.json config/
|
||||
if [[ $nodeType = blockstreamer ]]; then
|
||||
# Run another drone with the mint keypair on the blockstreamer node.
|
||||
# Typically the blockstreamer node has a static IP/DNS name for hosting
|
||||
# the blockexplorer web app, and is a location that somebody would expect
|
||||
# to be able to airdrop from
|
||||
scp "$entrypointIp":~/solana/config/mint-keypair.json config/
|
||||
scp "$entrypointIp":~/solana/config/faucet-keypair.json config/
|
||||
if [[ $airdropsEnabled = true ]]; then
|
||||
cat >> ~/solana/on-reboot <<EOF
|
||||
multinode-demo/drone.sh > drone.log 2>&1 &
|
||||
|
Reference in New Issue
Block a user