From 409b72cb5b1a0071426a33b280d228ce349d4a75 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 27 Sep 2021 15:55:28 +0300 Subject: [PATCH] [#786] neofs-node: Ignore proxy contract in notary disabled environment Signed-off-by: Alex Vanin --- cmd/neofs-node/morph.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/neofs-node/morph.go b/cmd/neofs-node/morph.go index dea712a9..6debe501 100644 --- a/cmd/neofs-node/morph.go +++ b/cmd/neofs-node/morph.go @@ -286,6 +286,10 @@ func lookupScriptHashesInNNS(c *cfg) { ) for _, t := range targets { + if t.nnsName == client.NNSProxyContractName && !c.cfgMorph.notaryEnabled { + continue // ignore proxy contract if notary disabled + } + if emptyHash.Equals(*t.h) { *t.h, err = c.cfgMorph.client.NNSContractAddress(t.nnsName) fatalOnErrDetails(fmt.Sprintf("can't resolve %s in NNS", t.nnsName), err)