mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-02 06:12:56 +00:00
core/state: removed trie copy
This commit is contained in:
parent
aa699a1283
commit
bdd63837ea
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ func (s *StateDB) Cmp(other *StateDB) bool {
|
||||||
|
|
||||||
func (self *StateDB) Copy() *StateDB {
|
func (self *StateDB) Copy() *StateDB {
|
||||||
state := New(common.Hash{}, self.db)
|
state := New(common.Hash{}, self.db)
|
||||||
state.trie = self.trie.Copy()
|
state.trie = self.trie
|
||||||
for k, stateObject := range self.stateObjects {
|
for k, stateObject := range self.stateObjects {
|
||||||
state.stateObjects[k] = stateObject.Copy()
|
state.stateObjects[k] = stateObject.Copy()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue