From cb1fb28247ca7800f63b8ea362c117326522f7c4 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 27 May 2021 12:37:34 -0600 Subject: [PATCH] Allow configuring testnet slots-per-epoch (#17545) --- net/net.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/net.sh b/net/net.sh index 3a25c81f26..3dbf78e6ec 100755 --- a/net/net.sh +++ b/net/net.sh @@ -102,7 +102,10 @@ Operate a configured testnet --cluster-type development|devnet|testnet|mainnet-beta - Specify whether or not to launch the cluster in "development" mode with all features enabled at epoch 0, or various other live clusters' feature set (default: development) - --warp-slot WARP_SLOT - Boot from a snapshot that has warped ahead to WARP_SLOT rather than a slot 0 genesis. + --slots-per-epoch SLOTS + - Override the number of slots in an epoch + --warp-slot WARP_SLOT + - Boot from a snapshot that has warped ahead to WARP_SLOT rather than a slot 0 genesis. sanity/start-specific options: -F - Discard validator nodes that didn't bootup successfully -o noInstallCheck - Skip solana-install sanity @@ -822,6 +825,9 @@ while [[ -n $1 ]]; do esac genesisOptions="$genesisOptions $1 $2" shift 2 + elif [[ $1 = --slots-per-epoch ]]; then + genesisOptions="$genesisOptions $1 $2" + shift 2 elif [[ $1 = --no-snapshot-fetch ]]; then maybeNoSnapshot="$1" shift 1