浏览代码

Reset storage cache after sync

obscuren 10 年之前
父节点
当前提交
c14071df9d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      state/state_object.go

+ 1 - 0
state/state_object.go

@@ -152,6 +152,7 @@ func (self *StateObject) Sync() {
 
 		self.setAddr([]byte(key), value)
 	}
+	self.storage = make(Storage)
 }
 
 func (c *StateObject) GetInstr(pc *big.Int) *ethutil.Value {