mint.json is now private
This commit is contained in:
parent
4e3526394e
commit
c0f9e452f2
|
@ -5,6 +5,7 @@ Cargo.lock
|
||||||
|
|
||||||
# node configuration files
|
# node configuration files
|
||||||
/config/
|
/config/
|
||||||
|
/config-private/
|
||||||
/config-drone/
|
/config-drone/
|
||||||
/config-validator/
|
/config-validator/
|
||||||
/config-client-demo/
|
/config-client-demo/
|
||||||
|
|
|
@ -16,7 +16,7 @@ rsync_leader_url=$(rsync_url "$leader")
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p $SOLANA_CONFIG_DIR
|
mkdir -p $SOLANA_CONFIG_DIR
|
||||||
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||||
rsync -vPz "$rsync_leader_url"/config/mint.json $SOLANA_CONFIG_DIR/
|
rsync -vPz "$rsync_leader_url"/config-private/mint.json $SOLANA_CONFIG_DIR/
|
||||||
|
|
||||||
# shellcheck disable=SC2086 # $solana_client_demo should not be quoted
|
# shellcheck disable=SC2086 # $solana_client_demo should not be quoted
|
||||||
exec $solana_client_demo \
|
exec $solana_client_demo \
|
||||||
|
|
|
@ -28,7 +28,7 @@ rsync_leader_url=$(rsync_url "$leader")
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p $SOLANA_CONFIG_DIR
|
mkdir -p $SOLANA_CONFIG_DIR
|
||||||
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||||
rsync -vPz "$rsync_leader_url"/config/mint.json $SOLANA_CONFIG_DIR/
|
rsync -vPz "$rsync_leader_url"/config-private/mint.json $SOLANA_CONFIG_DIR/
|
||||||
|
|
||||||
# shellcheck disable=SC2086 # $solana_drone should not be quoted
|
# shellcheck disable=SC2086 # $solana_drone should not be quoted
|
||||||
exec $solana_drone \
|
exec $solana_drone \
|
||||||
|
|
|
@ -44,14 +44,17 @@ validator_address_args=("$ip_address_arg" -b 9000)
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Cleaning $SOLANA_CONFIG_DIR"
|
echo "Cleaning $SOLANA_CONFIG_DIR"
|
||||||
rm -rvf "$SOLANA_CONFIG_DIR"
|
(
|
||||||
mkdir -p "$SOLANA_CONFIG_DIR"
|
set -x
|
||||||
|
rm -rvf "$SOLANA_CONFIG_DIR"{,-private}
|
||||||
|
mkdir -p "$SOLANA_CONFIG_DIR"{,-private}
|
||||||
|
)
|
||||||
|
|
||||||
echo "Creating $SOLANA_CONFIG_DIR/mint.json with $num_tokens tokens"
|
echo "Creating $SOLANA_CONFIG_DIR/mint.json with $num_tokens tokens"
|
||||||
$solana_mint <<<"$num_tokens" > "$SOLANA_CONFIG_DIR"/mint.json
|
$solana_mint <<<"$num_tokens" > "$SOLANA_CONFIG_DIR"-private/mint.json
|
||||||
|
|
||||||
echo "Creating $SOLANA_CONFIG_DIR/genesis.log"
|
echo "Creating $SOLANA_CONFIG_DIR/genesis.log"
|
||||||
$solana_genesis < "$SOLANA_CONFIG_DIR"/mint.json > "$SOLANA_CONFIG_DIR"/genesis.log
|
$solana_genesis < "$SOLANA_CONFIG_DIR"-private/mint.json > "$SOLANA_CONFIG_DIR"/genesis.log
|
||||||
|
|
||||||
echo "Creating $SOLANA_CONFIG_DIR/leader.json"
|
echo "Creating $SOLANA_CONFIG_DIR/leader.json"
|
||||||
$solana_fullnode_config "${leader_address_args[@]}" > "$SOLANA_CONFIG_DIR"/leader.json
|
$solana_fullnode_config "${leader_address_args[@]}" > "$SOLANA_CONFIG_DIR"/leader.json
|
||||||
|
|
Loading…
Reference in New Issue