mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 23:14:37 +00:00
~/.tendermint -> .tendermint
This commit is contained in:
+1
-7
@@ -20,7 +20,7 @@ func App() *confer.Config {
|
||||
appMtx.Lock()
|
||||
defer appMtx.Unlock()
|
||||
if app == nil {
|
||||
Init("")
|
||||
Init(".tendermint")
|
||||
}
|
||||
return app
|
||||
}
|
||||
@@ -105,12 +105,6 @@ func initDefaults(rootDir string) {
|
||||
func Init(rootDir string) {
|
||||
|
||||
// Get RootDir
|
||||
if rootDir == "" {
|
||||
rootDir = os.Getenv("TMROOT")
|
||||
}
|
||||
if rootDir == "" {
|
||||
rootDir = os.Getenv("HOME") + "/.tendermint"
|
||||
}
|
||||
configFile := path.Join(rootDir, "config.toml")
|
||||
genesisFile := path.Join(rootDir, "genesis.json")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user