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

Function SetMinerConfig

conf/testnet/parameters.go:62–71  ·  view source on GitHub ↗

SetMinerConfig set testnet common config for miner.

(config *conf.Config)

Source from the content-addressed store, hash-verified

60
61// SetMinerConfig set testnet common config for miner.
62func 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}

Callers 1

runGenerateFunction · 0.92

Calls 3

WithErrorFunction · 0.92
UnmarshalMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected