diff --git a/pkg/util/uint160.go b/pkg/util/uint160.go index 1e457d323..6e40c73d9 100644 --- a/pkg/util/uint160.go +++ b/pkg/util/uint160.go @@ -107,7 +107,7 @@ func (u Uint160) Equals(other Uint160) bool { // Less returns true if this value is less than given Uint160 value. It's // primarily intended to be used for sorting purposes. func (u Uint160) Less(other Uint160) bool { - for k := range u { + for k := Uint160Size - 1; k >= 0; k-- { if u[k] == other[k] { continue }