Download and install SPL programs in run.sh/multinode-demo/docker (bp #11271) (#11275)

* Add --bpf-program argument

(cherry picked from commit 8eb6cbf784)

* Fetch and install SPL programs by default

(cherry picked from commit 3a1ca4efff)

* .sh

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-07-29 22:42:04 +00:00
committed by GitHub
parent 9aff121949
commit a264be1791
7 changed files with 127 additions and 3 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