MCPcopy Create free account
hub / github.com/tendermint/tendermint / Less

Method Less

types/validator_set.go:771–773  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

769func (valz ValidatorsByAddress) Len() int { return len(valz) }
770
771func (valz ValidatorsByAddress) Less(i, j int) bool {
772 return bytes.Compare(valz[i].Address, valz[j].Address) == -1
773}
774
775func (valz ValidatorsByAddress) Swap(i, j int) {
776 valz[i], valz[j] = valz[j], valz[i]

Callers

nothing calls this directly

Calls 1

CompareMethod · 0.65

Tested by

no test coverage detected