Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Generate a client-specific mint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and garious committed Jun 30, 2018
1 parent d63493a commit 5671da4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion multinode-demo/wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ set -ex
mkdir -p $SOLANA_CONFIG_DIR
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/

client_json=$SOLANA_CONFIG_DIR/client.json
if [[ ! -r $client_json ]]; then
$solana_mint <<<0 > $client_json
fi

# shellcheck disable=SC2086 # $solana_wallet should not be quoted
exec $solana_wallet \
-l $SOLANA_CONFIG_DIR/leader.json -m $SOLANA_CONFIG_DIR/mint.json "$@"
-l $SOLANA_CONFIG_DIR/leader.json -m $client_json "$@"

0 comments on commit 5671da4

Please sign in to comment.