Files
evm/scripts/run_simulator.sh
37ff0fc4d7 Docker image combined tag (#1566)
Signed-off-by: Martin Eckardt <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Martin Eckardt <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-04-24 11:56:27 +00:00

42 lines
966 B
Bash
Executable File

#!/usr/bin/env bash
# This script runs a 30s load simulation using RPC_ENDPOINTS environment variable to specify
# which RPC endpoints to hit.
set -e
echo "Beginning simulator script"
if ! [[ "$0" =~ scripts/run_simulator.sh ]]; then
echo "must be run from repository root, but got $0"
exit 255
fi
SUBNET_EVM_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
# Load the constants
source "$SUBNET_EVM_PATH"/scripts/constants.sh
run_simulator() {
#################################
echo "building simulator"
pushd ./cmd/simulator
go build -o ./simulator main/*.go
echo
popd
echo "running simulator from $PWD"
./cmd/simulator/simulator \
--endpoints="$RPC_ENDPOINTS" \
--key-dir=./cmd/simulator/.simulator/keys \
--timeout=300s \
--workers=1 \
--txs-per-worker=50000 \
--batch-size=50000 \
--max-fee-cap=1000000 \
--max-tip-cap=10000
}
run_simulator