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

Function initResolver

route/dns.go:62–70  ·  view source on GitHub ↗

initResolver returns a new resolver.

()

Source from the content-addressed store, hash-verified

60
61// initResolver returns a new resolver.
62func initResolver() {
63 Once.Do(func() {
64 resolver = &Resolver{
65 cache: make(NodeIDAddressMap),
66 bpNodeIDs: make(NodeIDAddressMap),
67 }
68 initBPNodeIDs()
69 })
70}
71
72// IsBPNodeID returns if it is Block Producer node id.
73func IsBPNodeID(id *proto.RawNodeID) bool {

Callers 5

IsBPNodeIDFunction · 0.85
setResolveCacheFunction · 0.85
GetNodeAddrCacheFunction · 0.85
SetNodeAddrCacheFunction · 0.85
InitKMSFunction · 0.85

Calls 2

initBPNodeIDsFunction · 0.85
DoMethod · 0.80

Tested by

no test coverage detected