GetTestNetConfig parses and returns the CovenantSQL TestNet config.
()
| 50 | |
| 51 | // GetTestNetConfig parses and returns the CovenantSQL TestNet config. |
| 52 | func GetTestNetConfig() (config *conf.Config) { |
| 53 | var err error |
| 54 | config = &conf.Config{} |
| 55 | if err = yaml.Unmarshal([]byte(CQLConfigYAML), config); err != nil { |
| 56 | log.WithError(err).Fatal("failed to unmarshal testnet config") |
| 57 | } |
| 58 | return |
| 59 | } |
| 60 | |
| 61 | // SetMinerConfig set testnet common config for miner. |
| 62 | func SetMinerConfig(config *conf.Config) { |