Remove unused exchange program and bench client (#18463)
This commit is contained in:
@ -10,8 +10,7 @@ if [[ -n $4 ]]; then
|
||||
export RUST_LOG="$4"
|
||||
fi
|
||||
benchTpsExtraArgs="$5"
|
||||
benchExchangeExtraArgs="$6"
|
||||
clientIndex="$7"
|
||||
clientIndex="$6"
|
||||
|
||||
missing() {
|
||||
echo "Error: $1 not specified"
|
||||
@ -57,23 +56,6 @@ solana-bench-tps)
|
||||
--read-client-keys ./client-accounts.yml \
|
||||
"
|
||||
;;
|
||||
solana-bench-exchange)
|
||||
solana-keygen new --no-passphrase -fso bench.keypair
|
||||
net/scripts/rsync-retry.sh -vPrc \
|
||||
"$entrypointIp":~/solana/config/bench-exchange"$clientIndex".yml ./client-accounts.yml
|
||||
clientCommand="\
|
||||
solana-bench-exchange \
|
||||
--entrypoint $entrypointIp:8001 \
|
||||
--faucet $entrypointIp:9900 \
|
||||
--threads $threadCount \
|
||||
--batch-size 1000 \
|
||||
--fund-amount 20000 \
|
||||
--duration 7500 \
|
||||
--identity bench.keypair \
|
||||
$benchExchangeExtraArgs \
|
||||
--read-client-keys ./client-accounts.yml \
|
||||
"
|
||||
;;
|
||||
idle)
|
||||
# Add the faucet keypair to idle clients for convenience
|
||||
net/scripts/rsync-retry.sh -vPrc \
|
||||
|
@ -20,15 +20,13 @@ internalNodesLamports="${11}"
|
||||
nodeIndex="${12}"
|
||||
numBenchTpsClients="${13}"
|
||||
benchTpsExtraArgs="${14}"
|
||||
numBenchExchangeClients="${15}"
|
||||
benchExchangeExtraArgs="${16}"
|
||||
genesisOptions="${17}"
|
||||
extraNodeArgs="${18}"
|
||||
gpuMode="${19:-auto}"
|
||||
maybeWarpSlot="${20}"
|
||||
waitForNodeInit="${21}"
|
||||
extraPrimordialStakes="${22:=0}"
|
||||
tmpfsAccounts="${23:false}"
|
||||
genesisOptions="${15}"
|
||||
extraNodeArgs="${16}"
|
||||
gpuMode="${17:-auto}"
|
||||
maybeWarpSlot="${18}"
|
||||
waitForNodeInit="${19}"
|
||||
extraPrimordialStakes="${20:=0}"
|
||||
tmpfsAccounts="${21:false}"
|
||||
set +x
|
||||
|
||||
missing() {
|
||||
@ -194,13 +192,6 @@ EOF
|
||||
tail -n +2 -q config/bench-tps"$i".yml >> config/client-accounts.yml
|
||||
echo "" >> config/client-accounts.yml
|
||||
done
|
||||
for i in $(seq 0 $((numBenchExchangeClients-1))); do
|
||||
# shellcheck disable=SC2086 # Do not want to quote $benchExchangeExtraArgs
|
||||
solana-bench-exchange --batch-size 1000 --fund-amount 20000 \
|
||||
--write-client-keys config/bench-exchange"$i".yml $benchExchangeExtraArgs
|
||||
tail -n +2 -q config/bench-exchange"$i".yml >> config/client-accounts.yml
|
||||
echo "" >> config/client-accounts.yml
|
||||
done
|
||||
if [[ -f $externalPrimordialAccountsFile ]]; then
|
||||
cat "$externalPrimordialAccountsFile" >> config/validator-balances.yml
|
||||
fi
|
||||
|
Reference in New Issue
Block a user