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

Function IsBPNodeID

route/dns.go:73–80  ·  view source on GitHub ↗

IsBPNodeID returns if it is Block Producer node id.

(id *proto.RawNodeID)

Source from the content-addressed store, hash-verified

71
72// IsBPNodeID returns if it is Block Producer node id.
73func IsBPNodeID(id *proto.RawNodeID) bool {
74 initResolver()
75 if id == nil {
76 return false
77 }
78 _, ok := resolver.bpNodeIDs[*id]
79 return ok
80}
81
82// setResolveCache initializes Resolver.cache by a new map.
83func setResolveCache(initCache NodeIDAddressMap) {

Callers 3

GetSharedSecretWithFunction · 0.92
IsPermittedFunction · 0.85
TestResolverFunction · 0.85

Calls 1

initResolverFunction · 0.85

Tested by 1

TestResolverFunction · 0.68