SetMinerConfig set testnet common config for miner.
(config *conf.Config)
| 60 | |
| 61 | // SetMinerConfig set testnet common config for miner. |
| 62 | func SetMinerConfig(config *conf.Config) { |
| 63 | if config == nil { |
| 64 | return |
| 65 | } |
| 66 | var err error |
| 67 | if err = yaml.Unmarshal([]byte(CQLMinerYAML), config); err != nil { |
| 68 | log.WithError(err).Fatal("failed to unmarshal testnet miner config") |
| 69 | } |
| 70 | return |
| 71 | } |
no test coverage detected