Merge pull request #930 from nspcc-dev/fix/keys

Cache storage operations across same block tx executions
This commit is contained in:
Roman Khimov 2020-05-21 11:08:42 +03:00 committed by GitHub
commit 5ec70b9fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 246 additions and 20 deletions

View file

@ -561,8 +561,8 @@ func (ic *interopContext) contractDestroy(v *vm.VM) error {
if err != nil {
return err
}
for k := range siMap {
_ = ic.dao.DeleteStorageItem(hash, []byte(k))
for i := range siMap {
_ = ic.dao.DeleteStorageItem(hash, siMap[i].Key)
}
}
return nil