Update neo-go to v0.103.0 #752
1 changed files with 3 additions and 7 deletions
|
@ -110,15 +110,11 @@ func (s *innerRingIndexer) AlphabetIndex() (int32, error) {
|
||||||
|
|
||||||
// keyPosition returns "-1" if key is not found in the list, otherwise returns
|
// keyPosition returns "-1" if key is not found in the list, otherwise returns
|
||||||
// index of the key.
|
// index of the key.
|
||||||
func keyPosition(key *keys.PublicKey, list keys.PublicKeys) (result int32) {
|
func keyPosition(key *keys.PublicKey, list keys.PublicKeys) int32 {
|
||||||
result = -1
|
|
||||||
|
|
||||||
for i := range list {
|
for i := range list {
|
||||||
if key.Equal(list[i]) {
|
if key.Equal(list[i]) {
|
||||||
result = int32(i)
|
return int32(i)
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return -1
|
||||||
return result
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue