Fix config bug where chain_id is default magic. Always read from genesis

This commit is contained in:
Jae Kwon
2015-10-20 17:39:03 -07:00
parent df733fbaa5
commit 7c12c5aee3
6 changed files with 74 additions and 36 deletions

View File

@@ -35,7 +35,9 @@ func main() {
fmt.Printf("New Debora Process (PID: %d)\n", os.Getpid())
// Apply bare tendermint/* configuration.
cfg.ApplyConfig(cfg.MapConfig(map[string]interface{}{"log_level": "notice"}))
config := cfg.NewMapConfig(nil)
config.Set("log_level", "notice")
cfg.ApplyConfig(config)
rootDir := os.Getenv("DEBROOT")
if rootDir == "" {