[#845] adm: Relax notary-enabled check
All checks were successful
DCO action / DCO (pull_request) Successful in 1m50s
Build / Build Components (1.20) (pull_request) Successful in 3m35s
Build / Build Components (1.21) (pull_request) Successful in 4m7s
Vulncheck / Vulncheck (pull_request) Successful in 3m40s
Tests and linters / Staticcheck (pull_request) Successful in 7m21s
Tests and linters / Lint (pull_request) Successful in 8m9s
Tests and linters / Tests (1.20) (pull_request) Successful in 11m26s
Tests and linters / Tests (1.21) (pull_request) Successful in 11m34s
Tests and linters / Tests with -race (pull_request) Successful in 12m1s

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/
TrueCloudLab/frostfs-dev-env#59

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-12-06 11:57:04 +03:00
parent f1db468d48
commit 9d7dde0cfa

View file

@ -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
}