mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
Fix config bug where chain_id is default magic. Always read from genesis
This commit is contained in:
+3
-1
@@ -50,7 +50,9 @@ func main() {
|
||||
fmt.Printf("New Barak Process (PID: %d)\n", os.Getpid())
|
||||
|
||||
// Apply bare tendermint/* configuration.
|
||||
cfg.ApplyConfig(cfg.MapConfig(map[string]interface{}{"log_level": "info"}))
|
||||
config := cfg.NewMapConfig(nil)
|
||||
config.Set("log_level", "info")
|
||||
cfg.ApplyConfig(config)
|
||||
|
||||
// Read options
|
||||
optionsFile := parseFlags()
|
||||
|
||||
+3
-1
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user