frostfsid: Remove old data on update #95
3 changed files with 13 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
v0.19.1
|
v0.19.3
|
||||||
|
|
|
@ -5,7 +5,7 @@ import "github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
||||||
const (
|
const (
|
||||||
major = 0
|
major = 0
|
||||||
minor = 19
|
minor = 19
|
||||||
patch = 1
|
patch = 3
|
||||||
|
|
||||||
// Versions from which an update should be performed.
|
// 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
|
// These should be used in a group (so prevMinor can be equal to minor if there are
|
||||||
|
|
|
@ -73,6 +73,17 @@ const (
|
||||||
func _deploy(data any, isUpdate bool) {
|
func _deploy(data any, isUpdate bool) {
|
||||||
ctx := storage.GetContext()
|
ctx := storage.GetContext()
|
||||||
|
|
||||||
|
if isUpdate {
|
||||||
|
storage.Delete(ctx, "netmapScriptHash")
|
||||||
|
storage.Delete(ctx, "containerScriptHash")
|
||||||
dkirillov marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
|
it := storage.Find(ctx, "o", storage.KeysOnly)
|
||||||
|
for iterator.Next(it) {
|
||||||
|
key := iterator.Value(it)
|
||||||
|
storage.Delete(ctx, key)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
args := data.(struct {
|
args := data.(struct {
|
||||||
admin interop.Hash160
|
admin interop.Hash160
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue
Should we also delete
notary
key ando
prefix?I believe
notary
was actually removed during the previous update (see support/v0.18 branch)Added
o
prefix removal.I don't see we explicitly deleted such key #50/files
Or we just didn't set it?
common.RmAndCheckNotaryDisabledKey(data, notaryDisabledKey)
-- this line was present in the previous release.