MCPcopy Create free account
hub / github.com/DNAProject/DNA / initConfig

Function initConfig

main.go:215–223  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

213}
214
215func initConfig(ctx *cli.Context) (*config.BlockchainConfig, error) {
216 //init ontology config from cli
217 cfg, err := cmd.SetBlockchainConfig(ctx)
218 if err != nil {
219 return nil, err
220 }
221 log.Infof("Config init success")
222 return cfg, nil
223}
224
225func initAccount(ctx *cli.Context) (*account.Account, error) {
226 if !config.DefConfig.Consensus.EnableConsensus {

Callers 1

startDNAFunction · 0.85

Calls 2

SetBlockchainConfigFunction · 0.92
InfofMethod · 0.80

Tested by

no test coverage detected