Skip to content

Commit

Permalink
refactor: requested changes in refactoring and default values for v1.…
Browse files Browse the repository at this point in the history
…2.0 (razor-network#1230)

* refactor: renamed test_utils_test.go to initTestMocks.go

* refactor: reverted buffer state sleep time to 5 seconds

* refactor: reverted default gas price to 1
  • Loading branch information
Yashk767 authored Sep 3, 2024
1 parent 07cf9fe commit 7f77a9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if [ -z "$WAIT_TIME" ]; then
WAIT_TIME=5
fi

read -rp "Gas Price: (0) " GAS_PRICE
read -rp "Gas Price: (1) " GAS_PRICE
if [ -z "$GAS_PRICE" ]; then
GAS_PRICE=0
GAS_PRICE=1
fi

read -rp "Gas Limit Increment : (2) " GAS_LIMIT
Expand Down
4 changes: 2 additions & 2 deletions core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const BlockCompletionTimeout = 30
const (
DefaultGasMultiplier float32 = 1.0
DefaultBufferPercent int32 = 20
DefaultGasPrice int32 = 0
DefaultGasPrice int32 = 1
DefaultWaitTime int32 = 5
DefaultGasLimit float32 = 2
DefaultGasLimitOverride uint64 = 30000000
Expand All @@ -37,7 +37,7 @@ const (
)

//BufferStateSleepTime is the sleeping time whenever buffer state hits
const BufferStateSleepTime int32 = 2
const BufferStateSleepTime int32 = 5

//Following are the default logFile parameters in config
const (
Expand Down

0 comments on commit 7f77a9f

Please sign in to comment.