|
|
@ -35,10 +35,10 @@ func initTMRoot(rootDir string) { |
|
|
|
if !FileExists(configFilePath) { |
|
|
|
// Ask user for moniker
|
|
|
|
// moniker := cfg.Prompt("Type hostname: ", "anonymous")
|
|
|
|
MustWriteFile(configFilePath, []byte(defaultConfig("anonymous"))) |
|
|
|
MustWriteFile(configFilePath, []byte(defaultConfig("anonymous")), 0644) |
|
|
|
} |
|
|
|
if !FileExists(genesisFilePath) { |
|
|
|
MustWriteFile(genesisFilePath, []byte(defaultGenesis)) |
|
|
|
MustWriteFile(genesisFilePath, []byte(defaultGenesis), 0644) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|