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

Function SetNodeAddrCache

route/dns.go:117–120  ·  view source on GitHub ↗

SetNodeAddrCache sets node id and addr.

(id *proto.RawNodeID, addr string)

Source from the content-addressed store, hash-verified

115
116// SetNodeAddrCache sets node id and addr.
117func SetNodeAddrCache(id *proto.RawNodeID, addr string) (err error) {
118 initResolver()
119 return setNodeAddrCache(id, addr)
120}
121
122// initBPNodeIDs initializes BlockProducer route and map from config file and DNS Seed.
123func initBPNodeIDs() (bpNodeIDs NodeIDAddressMap) {

Callers 12

TestMultiChainFunction · 0.92
setupMuxParallelFunction · 0.92
initNodePeersFunction · 0.92
SetNodeMethod · 0.92
TestETLSBugFunction · 0.92
TestEncPingFindNeighborFunction · 0.92
GetNodeAddrFunction · 0.92
GetNodeInfoFunction · 0.92
InitKMSFunction · 0.85
TestResolverFunction · 0.85

Calls 2

initResolverFunction · 0.85
setNodeAddrCacheFunction · 0.85

Tested by 7

TestMultiChainFunction · 0.74
setupMuxParallelFunction · 0.74
TestETLSBugFunction · 0.74
TestEncPingFindNeighborFunction · 0.74
TestResolverFunction · 0.68