adm: relax notary-enabled check #845

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-adm into master 2023-12-06 11:08:06 +00:00

View file

@ -519,7 +519,7 @@ func checkNotaryEnabled(c Client) error {
nativeHashes := make(map[string]util.Uint160, len(ns)) nativeHashes := make(map[string]util.Uint160, len(ns))
for i := range ns { for i := range ns {
if ns[i].Manifest.Name == nativenames.Notary { if ns[i].Manifest.Name == nativenames.Notary {
notaryEnabled = len(ns[i].UpdateHistory) > 0 notaryEnabled = true
} }
nativeHashes[ns[i].Manifest.Name] = ns[i].Hash nativeHashes[ns[i].Manifest.Name] = ns[i].Hash
} }