Fetch and install SPL programs by default

This commit is contained in:
Michael Vines
2020-07-29 11:05:19 -07:00
parent 8eb6cbf784
commit 3a1ca4efff
6 changed files with 76 additions and 1 deletions

6
run.sh
View File

@ -63,6 +63,11 @@ fi
if [[ -e "$ledgerDir"/genesis.bin || -e "$ledgerDir"/genesis.tar.bz2 ]]; then
echo "Use existing genesis"
else
./fetch-spl.sh
if [[ -r spl-genesis-args.sh ]]; then
SPL_GENESIS_ARGS=$(cat spl-genesis-args.sh)
fi
# shellcheck disable=SC2086
solana-genesis \
--hashes-per-tick sleep \
@ -74,6 +79,7 @@ else
"$dataDir"/validator-stake-account.json \
--ledger "$ledgerDir" \
--operating-mode development \
$SPL_GENESIS_ARGS \
$SOLANA_RUN_SH_GENESIS_ARGS
fi