From 581b320b9dfb42c0c4842e0bc5aeb507267a8eba Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Mon, 19 Sep 2016 07:56:23 +0800 Subject: core/state: Fix memory expansion bug by not copying clean objects --- core/state/state_object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/state/state_object.go') diff --git a/core/state/state_object.go b/core/state/state_object.go index 769c63d42..20da1006f 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -187,7 +187,7 @@ func (self *StateObject) Copy() *StateObject { stateObject.codeHash = common.CopyBytes(self.codeHash) stateObject.nonce = self.nonce stateObject.trie = self.trie - stateObject.code = common.CopyBytes(self.code) + stateObject.code = self.code stateObject.initCode = common.CopyBytes(self.initCode) stateObject.storage = self.storage.Copy() stateObject.remove = self.remove -- cgit