aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/state_object.go
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2016-09-19 07:56:23 +0800
committerNick Johnson <arachnid@notdot.net>2016-09-19 08:57:08 +0800
commit581b320b9dfb42c0c4842e0bc5aeb507267a8eba (patch)
treebd539f130da99eeb8c36044785be9eb6ac57a1a8 /core/state/state_object.go
parentf970610c0442a7a4582529c01fb67403cea8bcd6 (diff)
downloaddexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.gz
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.bz2
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.lz
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.xz
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.zst
dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.zip
core/state: Fix memory expansion bug by not copying clean objects
Diffstat (limited to 'core/state/state_object.go')
-rw-r--r--core/state/state_object.go2
1 files changed, 1 insertions, 1 deletions
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