forked from TrueCloudLab/frostfs-node
[#786] neofs-node: Ignore proxy contract in notary disabled environment
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0e3e8db5c0
commit
409b72cb5b
1 changed files with 4 additions and 0 deletions
|
@ -286,6 +286,10 @@ func lookupScriptHashesInNNS(c *cfg) {
|
||||||
)
|
)
|
||||||
|
|
||||||
for _, t := range targets {
|
for _, t := range targets {
|
||||||
|
if t.nnsName == client.NNSProxyContractName && !c.cfgMorph.notaryEnabled {
|
||||||
|
continue // ignore proxy contract if notary disabled
|
||||||
|
}
|
||||||
|
|
||||||
if emptyHash.Equals(*t.h) {
|
if emptyHash.Equals(*t.h) {
|
||||||
*t.h, err = c.cfgMorph.client.NNSContractAddress(t.nnsName)
|
*t.h, err = c.cfgMorph.client.NNSContractAddress(t.nnsName)
|
||||||
fatalOnErrDetails(fmt.Sprintf("can't resolve %s in NNS", t.nnsName), err)
|
fatalOnErrDetails(fmt.Sprintf("can't resolve %s in NNS", t.nnsName), err)
|
||||||
|
|
Loading…
Reference in a new issue