MCPcopy Create free account
hub / github.com/arnaucube/goBlockchainDataAnalysis / getAllNodes

Function getAllNodes

mongoOperations.go:50–55  ·  view source on GitHub ↗

* func saveBlock(c *mgo.Collection, block BlockModel) { //first, check if the item already exists result := BlockModel{} err := c.Find(bson.M{"hash": block.Hash}).One(&result) if err != nil { //item not found, so let's add a new entry err = c.Insert(block) check(err) } else { err = c.Up

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NetworkMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected