MCPcopy Create free account
hub / github.com/Sifchain/sifnode / parseAppTOML

Method parseAppTOML

tools/sifgen/node/node.go:389–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func (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
404func (n *Node) setupCosmovisor() error {
405 if !n.WithCosmovisor {

Callers 1

replaceAppTOMLMethod · 0.95

Calls 1

AppFilePathMethod · 0.65

Tested by

no test coverage detected