~/.tendermint -> .tendermint

This commit is contained in:
Jae Kwon
2015-04-16 16:35:51 -07:00
parent 4c2e57437b
commit 22fdb6ca2f
3 changed files with 26 additions and 47 deletions
+1 -7
View File
@@ -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")