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

Method Less

protocol/claim.go:14–16  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

12func (s Shares) Len() int { return len(s) }
13func (s Shares) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
14func (s Shares) Less(i, j int) bool {
15 return s[i].Counter().Cmp(s[j].Counter()) == -1
16}
17
18type Claim struct {
19 shares Shares

Callers

nothing calls this directly

Calls 1

CounterMethod · 0.65

Tested by

no test coverage detected