aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/statedb.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-11-24 17:02:25 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-24 20:20:49 +0800
commit5dea0f2aa48a12e671dfa906896031db2379de8d (patch)
tree93b06156017198b361a9e461d8324814ed4f21fb /core/state/statedb.go
parent9ff9d04a6906cdb941f6797e63b9da7536316b64 (diff)
downloaddexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar.gz
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar.bz2
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar.lz
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar.xz
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.tar.zst
dexon-5dea0f2aa48a12e671dfa906896031db2379de8d.zip
core/state: copy trie too, not just content
Diffstat (limited to 'core/state/statedb.go')
-rw-r--r--core/state/statedb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 002fa6249..de9fb367d 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -453,7 +453,7 @@ func (self *StateDB) Copy() *StateDB {
// Copy all the basic fields, initialize the memory ones
state := &StateDB{
db: self.db,
- trie: self.trie,
+ trie: self.db.CopyTrie(self.trie),
stateObjects: make(map[common.Address]*stateObject, len(self.stateObjectsDirty)),
stateObjectsDirty: make(map[common.Address]struct{}, len(self.stateObjectsDirty)),
refund: new(big.Int).Set(self.refund),