diff --git a/cmd/neofs-node/morph.go b/cmd/neofs-node/morph.go index 6debe501..94fe28f5 100644 --- a/cmd/neofs-node/morph.go +++ b/cmd/neofs-node/morph.go @@ -37,6 +37,10 @@ func initMorphComponents(c *cfg) { var err error fn := func(addresses []string, dialTimeout time.Duration, handler func(*client.Client)) { + if len(addresses) == 0 { + fatalOnErr(errors.New("missing Neo RPC endpoints")) + } + crand := rand.New() // math/rand with cryptographic source crand.Shuffle(len(addresses), func(i, j int) { addresses[i], addresses[j] = addresses[j], addresses[i]