adm: Exclude group.frostfs key from output of the dump-hashes #127

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:bugfix/126-dump-hashes into master 2023-03-09 20:26:59 +00:00

View file

@ -8,6 +8,7 @@ import (
"text/tabwriter"
"git.frostfs.info/TrueCloudLab/frostfs-contract/nns"
morphClient "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/morph/client"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker"
"github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap"
@ -123,7 +124,7 @@ func dumpCustomZoneHashes(cmd *cobra.Command, nnsHash util.Uint160, zone string,
return
}
if !bytes.HasSuffix(bs, []byte(zone)) {
if !bytes.HasSuffix(bs, []byte(zone)) || bytes.HasPrefix(bs, []byte(morphClient.NNSGroupKeyName)) {

May be HasPrefix?

May be `HasPrefix`?

oops, you right, changed.

oops, you right, changed.
// Related https://github.com/nspcc-dev/neofs-contract/issues/316.
return
}