net/: Support accounts on swap-backed tmpfs
This commit is contained in:
committed by
Trent Nelson
parent
ddf1d2dbf5
commit
ff599ace4d
@ -28,6 +28,7 @@ gpuMode="${19:-auto}"
|
||||
maybeWarpSlot="${20}"
|
||||
waitForNodeInit="${21}"
|
||||
extraPrimordialStakes="${22:=0}"
|
||||
tmpfsAccounts="${23:false}"
|
||||
set +x
|
||||
|
||||
missing() {
|
||||
@ -275,6 +276,10 @@ EOF
|
||||
--init-complete-file "$initCompleteFile"
|
||||
)
|
||||
|
||||
if [[ "$tmpfsAccounts" = "true" ]]; then
|
||||
args+=(--accounts /mnt/solana-accounts)
|
||||
fi
|
||||
|
||||
if [[ $airdropsEnabled = true ]]; then
|
||||
cat >> ~/solana/on-reboot <<EOF
|
||||
./multinode-demo/faucet.sh > faucet.log 2>&1 &
|
||||
@ -392,6 +397,10 @@ EOF
|
||||
maybeSkipAccountsCreation="export SKIP_ACCOUNTS_CREATION=1"
|
||||
fi
|
||||
|
||||
if [[ "$tmpfsAccounts" = "true" ]]; then
|
||||
args+=(--accounts /mnt/solana-accounts)
|
||||
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