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

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2020-12-14 10:55:30 +03:00 committed by Alex Vanin
parent a8d55d9166
commit 76f5943c14
1 changed files with 1 additions and 1 deletions

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")