[#58] neofs: Do not limit initial inner ring key amount

Environment with single inner ring node is legal.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-22 16:56:59 +03:00 committed by Alex Vanin
parent 5e28938286
commit d5e230e031

View file

@ -88,8 +88,8 @@ func Init(owner interop.PublicKey, args []interop.PublicKey) bool {
var irList []common.IRNode var irList []common.IRNode
if len(args) < 3 { if len(args) == 0 {
panic("neofs: at least three inner ring keys must be provided") panic("neofs: at least one inner ring key must be provided")
} }
for i := 0; i < len(args); i++ { for i := 0; i < len(args); i++ {