Enable booting testnet validators without tower required (#19298)
This commit is contained in:
parent
5d380b24a8
commit
7d135f185c
|
@ -20,6 +20,7 @@ else
|
|||
fi
|
||||
|
||||
no_restart=0
|
||||
maybeRequireTower=true
|
||||
|
||||
args=()
|
||||
while [[ -n $1 ]]; do
|
||||
|
@ -84,6 +85,9 @@ while [[ -n $1 ]]; do
|
|||
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||
args+=("$1")
|
||||
shift
|
||||
elif [[ $1 == --skip-require-tower ]]; then
|
||||
maybeRequireTower=false
|
||||
shift
|
||||
else
|
||||
echo "Unknown argument: $1"
|
||||
$program --help
|
||||
|
@ -108,8 +112,11 @@ ledger_dir="$SOLANA_CONFIG_DIR"/bootstrap-validator
|
|||
exit 1
|
||||
}
|
||||
|
||||
if [[ $maybeRequireTower = true ]]; then
|
||||
args+=(--require-tower)
|
||||
fi
|
||||
|
||||
args+=(
|
||||
--require-tower
|
||||
--ledger "$ledger_dir"
|
||||
--rpc-port 8899
|
||||
--snapshot-interval-slots 200
|
||||
|
|
|
@ -46,6 +46,8 @@ EOF
|
|||
exit 1
|
||||
}
|
||||
|
||||
maybeRequireTower=true
|
||||
|
||||
positional_args=()
|
||||
while [[ -n $1 ]]; do
|
||||
if [[ ${1:0:1} = - ]]; then
|
||||
|
@ -163,6 +165,9 @@ while [[ -n $1 ]]; do
|
|||
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||
args+=("$1")
|
||||
shift
|
||||
elif [[ $1 == --skip-require-tower ]]; then
|
||||
maybeRequireTower=false
|
||||
shift
|
||||
elif [[ $1 = -h ]]; then
|
||||
usage "$@"
|
||||
else
|
||||
|
@ -235,7 +240,10 @@ default_arg --identity "$identity"
|
|||
default_arg --vote-account "$vote_account"
|
||||
default_arg --ledger "$ledger_dir"
|
||||
default_arg --log -
|
||||
default_arg --require-tower
|
||||
|
||||
if [[ $maybeRequireTower = true ]]; then
|
||||
default_arg --require-tower
|
||||
fi
|
||||
|
||||
if [[ -n $SOLANA_CUDA ]]; then
|
||||
program=$solana_validator_cuda
|
||||
|
|
|
@ -307,7 +307,7 @@ startBootstrapLeader() {
|
|||
$nodeIndex \
|
||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||
\"$genesisOptions\" \
|
||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
|
||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
|
||||
\"$gpuMode\" \
|
||||
\"$maybeWarpSlot\" \
|
||||
\"$waitForNodeInit\" \
|
||||
|
@ -378,7 +378,7 @@ startNode() {
|
|||
$nodeIndex \
|
||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||
\"$genesisOptions\" \
|
||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
|
||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
|
||||
\"$gpuMode\" \
|
||||
\"$maybeWarpSlot\" \
|
||||
\"$waitForNodeInit\" \
|
||||
|
@ -777,6 +777,7 @@ maybeDisableAirdrops=""
|
|||
maybeWaitForSupermajority=""
|
||||
maybeAllowPrivateAddr=""
|
||||
maybeAccountsDbSkipShrink=""
|
||||
maybeSkipRequireTower=""
|
||||
debugBuild=false
|
||||
doBuild=true
|
||||
gpuMode=auto
|
||||
|
@ -909,6 +910,9 @@ while [[ -n $1 ]]; do
|
|||
elif [[ $1 = --accounts-db-skip-shrink ]]; then
|
||||
maybeAccountsDbSkipShrink="$1"
|
||||
shift 1
|
||||
elif [[ $1 = --skip-require-tower ]]; then
|
||||
maybeSkipRequireTower="$1"
|
||||
shift 1
|
||||
else
|
||||
usage "Unknown long option: $1"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue