diff options
author | Nick Johnson <arachnid@notdot.net> | 2016-09-19 07:56:23 +0800 |
---|---|---|
committer | Nick Johnson <arachnid@notdot.net> | 2016-09-19 08:57:08 +0800 |
commit | 581b320b9dfb42c0c4842e0bc5aeb507267a8eba (patch) | |
tree | bd539f130da99eeb8c36044785be9eb6ac57a1a8 /core/state/state_object.go | |
parent | f970610c0442a7a4582529c01fb67403cea8bcd6 (diff) | |
download | dexon-581b320b9dfb42c0c4842e0bc5aeb507267a8eba.tar.gz 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.go | 2 |
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 |