mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-10 03:51:20 +00:00
Conform to go-common EnsureDir(path, mode)
This commit is contained in:
parent
b52cd4969b
commit
543ca16b6f
@ -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")
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user