Browse Source

Conform to go-common EnsureDir(path, mode)

pull/164/head
Jae Kwon 9 years ago
parent
commit
543ca16b6f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      config/tendermint/config.go
  2. +1
    -1
      config/tendermint_test/config.go

+ 1
- 1
config/tendermint/config.go View File

@ -21,7 +21,7 @@ func getTMRoot(rootDir string) string {
func initTMRoot(rootDir string) {
rootDir = getTMRoot(rootDir)
EnsureDir(rootDir)
EnsureDir(rootDir, 0700)
configFilePath := path.Join(rootDir, "config.toml")


+ 1
- 1
config/tendermint_test/config.go View File

@ -26,7 +26,7 @@ func getTMRoot(rootDir string) string {
func initTMRoot(rootDir string) {
rootDir = getTMRoot(rootDir)
EnsureDir(rootDir)
EnsureDir(rootDir, 0700)
configFilePath := path.Join(rootDir, "config.toml")
genesisFilePath := path.Join(rootDir, "genesis.json")


Loading…
Cancel
Save