()
| 387 | } |
| 388 | |
| 389 | func (n *Node) parseAppTOML() (common.AppTOML, error) { |
| 390 | var config common.AppTOML |
| 391 | |
| 392 | content, err := ioutil.ReadFile(n.CLI.AppFilePath()) |
| 393 | if err != nil { |
| 394 | return config, err |
| 395 | } |
| 396 | |
| 397 | if _, err := toml.Decode(string(content), &config); err != nil { |
| 398 | return config, err |
| 399 | } |
| 400 | |
| 401 | return config, nil |
| 402 | } |
| 403 | |
| 404 | func (n *Node) setupCosmovisor() error { |
| 405 | if !n.WithCosmovisor { |
no test coverage detected