2020-10-16 15:12:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set +x
|
|
|
|
test $SPAMMER_COMMAND
|
|
|
|
set +e
|
|
|
|
|
|
|
|
echo "Running tx spammer"
|
2020-10-16 15:17:08 +00:00
|
|
|
./tx_spammer ${SPAMMER_COMMAND} --config=config.toml --log-file=${LOG_FILE} --log-level=${LOG_LEVEL}
|
2020-10-16 15:12:21 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo "tx spammer ran successfully"
|
|
|
|
else
|
|
|
|
echo "tx spammer ran with error. Is the config file correct?"
|
|
|
|
exit 1
|
|
|
|
fi
|