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

Function init

cmd/cql/internal/idminer.go:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func init() {
61 CmdIDMiner.Run = runIDMiner
62
63 addCommonFlags(CmdIDMiner)
64 addConfigFlag(CmdIDMiner)
65 CmdIDMiner.Flag.IntVar(&difficulty, "difficulty", 24, "Difficulty for miner to mine nodes and generating nonce")
66 CmdIDMiner.Flag.BoolVar(&loop, "loop", false, "Keep mining until interrupted")
67}
68
69func runIDMiner(cmd *Command, args []string) {
70 publicKey := getPublicFromConfig()

Callers

nothing calls this directly

Calls 2

addCommonFlagsFunction · 0.85
addConfigFlagFunction · 0.85

Tested by

no test coverage detected