diff --git a/cmd/neofs-adm/internal/modules/morph/local_client.go b/cmd/neofs-adm/internal/modules/morph/local_client.go index 2b3c2559..bb4132bf 100644 --- a/cmd/neofs-adm/internal/modules/morph/local_client.go +++ b/cmd/neofs-adm/internal/modules/morph/local_client.go @@ -54,7 +54,6 @@ func newLocalClient(v *viper.Viper, wallets []*wallet.Wallet) (*localClient, err if err != nil { return nil, err } - defer func() { go bc.Run() }() m := smartcontract.GetDefaultHonestNodeCount(cfg.ProtocolConfiguration.ValidatorsCount) accounts := make([]*wallet.Account, len(wallets)) @@ -81,6 +80,8 @@ func newLocalClient(v *viper.Viper, wallets []*wallet.Wallet) (*localClient, err return bytes.Compare(pi, pj) == -1 }) + go bc.Run() + return &localClient{ bc: bc, dumpPath: v.GetString(localDumpFlag),