MCPcopy Create free account
hub / github.com/ethereum/node-crawler / LoadNodesJSON

Function LoadNodesJSON

pkg/common/nodes.go:55–61  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

53}
54
55func LoadNodesJSON(file string) NodeSet {
56 var nodes NodeSet
57 if err := common.LoadJSON(file, &nodes); err != nil {
58 panic(err)
59 }
60 return nodes
61}
62
63func (nodes NodeSet) WriteNodesJSON(file string) {
64 nodesJSON, err := json.MarshalIndent(nodes, "", jsonIndent)

Callers 1

crawlNodesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected