From beaef7b10da91edbf1b64c92825900cd07f0f6dd Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 17 Oct 2022 21:43:17 +0300 Subject: [PATCH] [#284] *: Update version and remove the old migration code Less chances to forget anything in the next release. Signed-off-by: Evgenii Stratonikov --- VERSION | 2 +- common/version.go | 6 +++--- netmap/netmap_contract.go | 19 ------------------- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index cfe6c00..00ddfef 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.16.0 +v0.16.1 diff --git a/common/version.go b/common/version.go index 8a3e290..bfc29ed 100644 --- a/common/version.go +++ b/common/version.go @@ -5,14 +5,14 @@ import "github.com/nspcc-dev/neo-go/pkg/interop/native/std" const ( major = 0 minor = 16 - patch = 0 + patch = 1 // Versions from which an update should be performed. // These should be used in a group (so prevMinor can be equal to minor if there are // any migration routines. prevMajor = 0 - prevMinor = 15 - prevPatch = 4 + prevMinor = 16 + prevPatch = 0 Version = major*1_000_000 + minor*1_000 + patch diff --git a/netmap/netmap_contract.go b/netmap/netmap_contract.go index 80f9560..6112032 100644 --- a/netmap/netmap_contract.go +++ b/netmap/netmap_contract.go @@ -94,25 +94,6 @@ func _deploy(data interface{}, isUpdate bool) { if isUpdate { common.CheckVersion(args.version) - - count := getSnapshotCount(ctx) - prefix := []byte(snapshotKeyPrefix) - for i := 0; i < count; i++ { - key := append(prefix, byte(i)) - data := storage.Get(ctx, key) - if data != nil { - nodes := std.Deserialize(data.([]byte)).([]Node) - for i := range nodes { - // Old structure contains only the first field, - // second is implicitly assumed to be Online. - nodes[i] = Node{ - BLOB: nodes[i].BLOB, - State: NodeStateOnline, - } - } - common.SetSerialized(ctx, key, nodes) - } - } return }