frostfsid: Remove old data on update #95
1 changed files with 11 additions and 0 deletions
|
@ -73,6 +73,17 @@ const (
|
|||
func _deploy(data any, isUpdate bool) {
|
||||
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 {
|
||||
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.