Explorar o código

Reset storage cache after sync

obscuren %!s(int64=10) %!d(string=hai) anos
pai
achega
c14071df9d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 {