(ctx *cli.Context)
| 213 | } |
| 214 | |
| 215 | func 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 | |
| 225 | func initAccount(ctx *cli.Context) (*account.Account, error) { |
| 226 | if !config.DefConfig.Consensus.EnableConsensus { |
no test coverage detected