MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / thisNode

Function thisNode

rpc/xxx_test.go:212–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212func thisNode() *proto.Node {
213 if conf.GConf != nil {
214 for _, node := range conf.GConf.KnownNodes {
215 if node.ID == conf.GConf.ThisNodeID {
216 return &node
217 }
218 }
219 }
220 return nil
221}
222
223func setup() {
224 rand.Seed(time.Now().UnixNano())

Callers 1

setupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected