From 9d7dde0cfa50b0eaa2223ad5f08c5e4285bfc473 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 6 Dec 2023 11:57:04 +0300 Subject: [PATCH] [#845] adm: Relax notary-enabled check Starting from v0.104.0 `NativeActivations` config field is no longer present and Notary activation height is always 0. https://github.com/nspcc-dev/neo-go/pull/3212/ https://git.frostfs.info/TrueCloudLab/frostfs-dev-env/issues/59 Signed-off-by: Evgenii Stratonikov --- cmd/frostfs-adm/internal/modules/morph/initialize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frostfs-adm/internal/modules/morph/initialize.go b/cmd/frostfs-adm/internal/modules/morph/initialize.go index e288361dd..96100ffb5 100644 --- a/cmd/frostfs-adm/internal/modules/morph/initialize.go +++ b/cmd/frostfs-adm/internal/modules/morph/initialize.go @@ -519,7 +519,7 @@ func checkNotaryEnabled(c Client) error { nativeHashes := make(map[string]util.Uint160, len(ns)) for i := range ns { if ns[i].Manifest.Name == nativenames.Notary { - notaryEnabled = len(ns[i].UpdateHistory) > 0 + notaryEnabled = true } nativeHashes[ns[i].Manifest.Name] = ns[i].Hash }