Browse Source

make changes backwards compatible (Refs #431)

pull/437/head
Anton Kaliaev 7 years ago
parent
commit
12ead6cc7e
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      config/tendermint/config.go

+ 4
- 0
config/tendermint/config.go View File

@ -13,6 +13,10 @@ func getTMRoot(rootDir string) string {
if rootDir == "" {
rootDir = os.Getenv("TMHOME")
}
if rootDir == "" {
// deprecated, use TMHOME (TODO: remove in TM 0.11.0)
rootDir = os.Getenv("TMROOT")
}
if rootDir == "" {
rootDir = os.Getenv("HOME") + "/.tendermint"
}


Loading…
Cancel
Save