diff --git a/CHANGELOG.md b/CHANGELOG.md index 3286b47947..e6e9e89d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Changelog for NeoFS Node ### Fixed - Do not ask for contract wallet password twice (#1346) +- Do not update NNS group if the key is the same (#1375) ## [0.28.1] - 2022-05-05 diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_nns.go b/cmd/neofs-adm/internal/modules/morph/initialize_nns.go index 7e109b23c1..f74ecb1ff9 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_nns.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_nns.go @@ -83,7 +83,7 @@ func (c *initializeContext) setNNS() error { func (c *initializeContext) updateNNSGroup(nnsHash util.Uint160, pub *keys.PublicKey) error { bw := io.NewBufBinWriter() sysFee, err := c.emitUpdateNNSGroupScript(bw, nnsHash, pub) - if err != nil { + if err != nil || sysFee == 0 { return err } return c.sendCommitteeTx(bw.Bytes(), sysFee, true)