[#24] neofs: Fix for iterator on updated inner ring list

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-14 10:55:30 +03:00 committed by Alex Vanin
parent a8d55d9166
commit 76f5943c14

View file

@ -357,7 +357,7 @@ func InnerRingUpdate(chequeID []byte, args [][]byte) bool {
newIR := []node{}
loop:
for i := 1; i < len(args); i++ {
for i := 0; i < len(args); i++ {
key := args[i]
if len(key) != publicKeySize {
panic("irUpdate: invalid public key in inner ring list")