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

Function writeDefaultConfigFileIfNone

config/toml.go:65–71  ·  view source on GitHub ↗
(rootDir string)

Source from the content-addressed store, hash-verified

63}
64
65func writeDefaultConfigFileIfNone(rootDir string) error {
66 configFilePath := filepath.Join(rootDir, defaultConfigFilePath)
67 if !tmos.FileExists(configFilePath) {
68 return WriteConfigFile(rootDir, DefaultConfig())
69 }
70 return nil
71}
72
73// Note: any changes to the comments/variables/mapstructure
74// must be reflected in the appropriate struct in config/config.go

Callers 1

ResetTestRootWithChainIDFunction · 0.85

Calls 2

WriteConfigFileFunction · 0.85
DefaultConfigFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…