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

Function GetBPs

route/dns.go:177–183  ·  view source on GitHub ↗

GetBPs returns the known BP node id list.

()

Source from the content-addressed store, hash-verified

175
176// GetBPs returns the known BP node id list.
177func GetBPs() (bpAddrs []proto.NodeID) {
178 bpAddrs = make([]proto.NodeID, 0, len(resolver.bpNodeIDs))
179 for id := range resolver.bpNodeIDs {
180 bpAddrs = append(bpAddrs, proto.NodeID(id.String()))
181 }
182 return
183}
184
185// InitKMS inits nasty stuff, only for testing.
186func InitKMS(PubKeyStoreFile string) {

Callers 5

TestInitFunction · 0.92
FindNodeInBPFunction · 0.92
GetCurrentBPFunction · 0.92
RegisterNodeToBPFunction · 0.92
TestResolverFunction · 0.85

Calls 2

NodeIDTypeAlias · 0.92
StringMethod · 0.45

Tested by 2

TestInitFunction · 0.74
TestResolverFunction · 0.68