Skip to content

Commit

Permalink
[#1375] neofs-adm: Do not update NNS group if the key is the same
Browse files Browse the repository at this point in the history
If the group key is already set, do not send any transactions.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
  • Loading branch information
fyrchik authored and cthulhu-rider committed May 13, 2022
1 parent 3a188bb commit 57200e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cmd/neofs-adm/internal/modules/morph/initialize_nns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57200e1

Please sign in to comment.