MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / GetTestNetConfig

Function GetTestNetConfig

conf/testnet/parameters.go:52–59  ·  view source on GitHub ↗

GetTestNetConfig parses and returns the CovenantSQL TestNet config.

()

Source from the content-addressed store, hash-verified

50
51// GetTestNetConfig parses and returns the CovenantSQL TestNet config.
52func 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.
62func SetMinerConfig(config *conf.Config) {

Callers 2

runGenerateFunction · 0.92
TestParseTestNetConfigFunction · 0.85

Calls 3

WithErrorFunction · 0.92
UnmarshalMethod · 0.80
FatalMethod · 0.80

Tested by 1

TestParseTestNetConfigFunction · 0.68