Enable easy full-rpc services on testnet nodes (#20529)
This commit is contained in:
@ -24,9 +24,10 @@ genesisOptions="${15}"
|
||||
extraNodeArgs="${16}"
|
||||
gpuMode="${17:-auto}"
|
||||
maybeWarpSlot="${18}"
|
||||
waitForNodeInit="${19}"
|
||||
extraPrimordialStakes="${20:=0}"
|
||||
tmpfsAccounts="${21:false}"
|
||||
maybeFullRpc="${19}"
|
||||
waitForNodeInit="${20}"
|
||||
extraPrimordialStakes="${21:=0}"
|
||||
tmpfsAccounts="${22:false}"
|
||||
set +x
|
||||
|
||||
missing() {
|
||||
@ -277,6 +278,11 @@ EOF
|
||||
args+=(--accounts /mnt/solana-accounts)
|
||||
fi
|
||||
|
||||
if $maybeFullRpc; then
|
||||
args+=(--enable-rpc-transaction-history)
|
||||
args+=(--enable-cpi-and-log-storage)
|
||||
fi
|
||||
|
||||
if [[ $airdropsEnabled = true ]]; then
|
||||
cat >> ~/solana/on-reboot <<EOF
|
||||
./multinode-demo/faucet.sh > faucet.log 2>&1 &
|
||||
@ -400,6 +406,11 @@ EOF
|
||||
args+=(--accounts /mnt/solana-accounts)
|
||||
fi
|
||||
|
||||
if $maybeFullRpc; then
|
||||
args+=(--enable-rpc-transaction-history)
|
||||
args+=(--enable-cpi-and-log-storage)
|
||||
fi
|
||||
|
||||
cat >> ~/solana/on-reboot <<EOF
|
||||
$maybeSkipAccountsCreation
|
||||
nohup multinode-demo/validator.sh ${args[@]} > validator.log.\$now 2>&1 &
|
||||
|
Reference in New Issue
Block a user