[#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>
enable-notary-in-public-chains
Alex Vanin 2021-03-22 16:56:59 +03:00 committed by Alex Vanin
parent 5e28938286
commit d5e230e031
1 changed files with 2 additions and 2 deletions

View File

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