Merge pull request #2303 from nspcc-dev/fix-uint160-sort-order
util: reverse the order of uint160 comparsion
This commit is contained in:
commit
fae1d562e7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue