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

Function _min

mtree/aug_mt.go:40–48  ·  view source on GitHub ↗
(a, b Counter)

Source from the content-addressed store, hash-verified

38}
39
40func _min(a, b Counter) Counter {
41 left := a.(*big.Int)
42 right := b.(*big.Int)
43 if left.Cmp(right) == -1 {
44 return left
45 } else {
46 return right
47 }
48}
49
50func _max(a, b Counter) Counter {
51 left := a.(*big.Int)

Callers 1

_augHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected