MCPcopy Create free account
hub / github.com/tendermint/tendermint / ValidateBasic

Method ValidateBasic

config/config.go:1351–1356  ·  view source on GitHub ↗

ValidateBasic performs basic validation (checking param bounds, etc.) and returns an error if any check fails.

()

Source from the content-addressed store, hash-verified

1349// ValidateBasic performs basic validation (checking param bounds, etc.) and
1350// returns an error if any check fails.
1351func (cfg *InstrumentationConfig) ValidateBasic() error {
1352 if cfg.MaxOpenConnections < 0 {
1353 return errors.New("max-open-connections can't be negative")
1354 }
1355 return nil
1356}
1357
1358//-----------------------------------------------------------------------------
1359// Utils

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected