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

Method Len

protocol/claim.go:12–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10type Shares []smartpool.Share
11
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

Callers 2

NumSharesMethod · 0.80
FinalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected