Skip to content

Commit

Permalink
Fix/script verbosity (ethereum#250)
Browse files Browse the repository at this point in the history
* scripts: verbosity in cmd

* scripts: verbosity argv

* scripts: better print
  • Loading branch information
tynes authored Mar 4, 2021
1 parent 460c41f commit bcca1f3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ROLLUP_POLL_INTERVAL=15s
ROLLUP_TIMESTAMP_REFRESH=15m
CACHE=1024
RPC_PORT=8545
VERBOSITY=3

USAGE="
Start the Sequencer or Verifier with most configuration pre-set.
Expand Down Expand Up @@ -49,6 +50,15 @@ while (( "$#" )); do
IS_VERIFIER=true
shift 1
;;
--verbosity)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
VERBOSITY="$2"
shift 2
else
echo "Error: Argument for $1 is missing" >&2
exit 1
fi
;;
--datadir)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
DATADIR="$2"
Expand Down Expand Up @@ -216,6 +226,7 @@ cmd="$cmd --ipcdisable"
if [[ ! -z "$IS_VERIFIER" ]]; then
cmd="$cmd --rollup.verifier"
fi
cmd="$cmd --verbosity=$VERBOSITY"

echo -e "Running:\n$cmd"
eval env TARGET_GAS_LIMIT=$TARGET_GAS_LIMIT USING_OVM=true $cmd --verbosity=3
echo -e "Running:\nTARGET_GAS_LIMIT=$TARGET_GAS_LIMIT USING_OVM=true $cmd"
eval env TARGET_GAS_LIMIT=$TARGET_GAS_LIMIT USING_OVM=true $cmd

0 comments on commit bcca1f3

Please sign in to comment.