MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / _augElementHash

Function _augElementHash

mtree/aug_mt.go:68–79  ·  view source on GitHub ↗
(data ElementData)

Source from the content-addressed store, hash-verified

66}
67
68func _augElementHash(data ElementData) NodeData {
69 s := data.(smartpool.Share)
70 // fmt.Printf("Constructing node:\n")
71 // fmt.Printf(" Min: %v\n", s.Counter())
72 // fmt.Printf(" Max: %v\n", s.Counter())
73 // fmt.Printf(" Hash: %s\n", s.Hash().Hex())
74 return AugData{
75 Min: s.Counter(),
76 Max: s.Counter(),
77 Hash: s.Hash(),
78 }
79}
80
81func _augHash(a, b NodeData) NodeData {
82 left := a.(AugData)

Callers

nothing calls this directly

Calls 2

CounterMethod · 0.65
HashMethod · 0.65

Tested by

no test coverage detected