MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / DefaultBaseConfig

Function DefaultBaseConfig

config/config.go:233–249  ·  view source on GitHub ↗

DefaultBaseConfig returns a default base configuration for a Tendermint node

()

Source from the content-addressed store, hash-verified

231
232// DefaultBaseConfig returns a default base configuration for a Tendermint node
233func DefaultBaseConfig() BaseConfig {
234 return BaseConfig{
235 Genesis: defaultGenesisJSONPath,
236 PrivValidatorKey: defaultPrivValKeyPath,
237 PrivValidatorState: defaultPrivValStatePath,
238 NodeKey: defaultNodeKeyPath,
239 Moniker: defaultMoniker,
240 ProxyApp: "kvstore",
241 ABCI: "socket",
242 LogLevel: DefaultLogLevel,
243 LogFormat: LogFormatPlain,
244 FastSyncMode: true,
245 FilterPeers: false,
246 DBBackend: "goleveldb",
247 DBPath: "data",
248 }
249}
250
251// TestBaseConfig returns a base configuration for testing a Tendermint node
252func TestBaseConfig() BaseConfig {

Callers 5

TestEnsureTestRootFunction · 0.85
DefaultConfigFunction · 0.85
TestBaseConfigFunction · 0.85
GetDefaultDBDirFunction · 0.85
ResetTestRootWithChainIDFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEnsureTestRootFunction · 0.68
TestBaseConfigFunction · 0.68