Skip to content

Commit

Permalink
Removed default alternate provider from set config script (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 authored Sep 5, 2023
1 parent 80ee390 commit 059a7be
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ then
PROVIDER="http://127.0.0.1:8545"
fi

read -rp "Alternate Provider: (http://127.0.0.1:8545) " ALTERNATE_PROVIDER
if [ -z "$ALTERNATE_PROVIDER" ];
then
ALTERNATE_PROVIDER="http://127.0.0.1:8545"
fi
read -rp "Alternate Provider: " ALTERNATE_PROVIDER

read -rp "Gas Multiplier: (1.0) " GAS_MULTIPLIER
if [ -z "$GAS_MULTIPLIER" ];
Expand Down Expand Up @@ -58,4 +54,10 @@ read -rp "Log Files Max Age: (365) " MAX_AGE
if [ -z "$MAX_AGE" ]; then
MAX_AGE=365
fi
$RAZOR setConfig -p $PROVIDER --alternateProvider $ALTERNATE_PROVIDER -b $BUFFER -g $GAS_MULTIPLIER -w $WAIT_TIME --gasprice $GAS_PRICE --gasLimit $GAS_LIMIT --rpcTimeout 10 --httpTimeout 10 --logFileMaxSize $MAX_SIZE --logFileMaxBackups $MAX_BACKUPS --logFileMaxAge $MAX_AGE

if [ -z "$ALTERNATE_PROVIDER" ]; then
$RAZOR setConfig -p $PROVIDER -b $BUFFER -g $GAS_MULTIPLIER -w $WAIT_TIME --gasprice $GAS_PRICE --gasLimit $GAS_LIMIT --rpcTimeout 10 --httpTimeout 10 --logFileMaxSize $MAX_SIZE --logFileMaxBackups $MAX_BACKUPS --logFileMaxAge $MAX_AGE
else
$RAZOR setConfig -p $PROVIDER --alternateProvider "$ALTERNATE_PROVIDER" -b $BUFFER -g $GAS_MULTIPLIER -w $WAIT_TIME --gasprice $GAS_PRICE --gasLimit $GAS_LIMIT --rpcTimeout 10 --httpTimeout 10 --logFileMaxSize $MAX_SIZE --logFileMaxBackups $MAX_BACKUPS --logFileMaxAge $MAX_AGE

fi

0 comments on commit 059a7be

Please sign in to comment.