Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: revised max/min value for config parameters #1257

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/config-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (*UtilsStruct) GetBufferPercent() (int32, error) {
func (*UtilsStruct) GetWaitTime() (int32, error) {
const (
MinWaitTime = 1 // Minimum wait time in seconds
MaxWaitTime = 30 // Maximum wait time in seconds
MaxWaitTime = 15 // Maximum wait time in seconds
)

waitTime, err := getConfigValue("wait", "int32", core.DefaultWaitTime, "wait")
Expand Down Expand Up @@ -325,7 +325,7 @@ func (*UtilsStruct) GetGasLimitOverride() (uint64, error) {
//This function returns the RPC timeout
func (*UtilsStruct) GetRPCTimeout() (int64, error) {
const (
MinRPCTimeout = 5 // Minimum RPC timeout in seconds
MinRPCTimeout = 1 // Minimum RPC timeout in seconds
MaxRPCTimeout = 10 // Maximum RPC timeout in seconds
)

Expand All @@ -347,7 +347,7 @@ func (*UtilsStruct) GetRPCTimeout() (int64, error) {

func (*UtilsStruct) GetHTTPTimeout() (int64, error) {
const (
MinHTTPTimeout = 5 // Minimum HTTP timeout in seconds
MinHTTPTimeout = 3 // Minimum HTTP timeout in seconds
MaxHTTPTimeout = 8 // Maximum HTTP timeout in seconds
)

Expand Down
Loading