diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-17 19:27:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-17 19:27:51 +0800 |
commit | aa699a1283c93740bba15f94c774d92ea6fe1980 (patch) | |
tree | 08e04161d8552e8516f449440067c76728fb9c19 /core/state/statedb.go | |
parent | aaddc99c35f1fcc9b5d7198dd6571dfa43718ae8 (diff) | |
download | go-tangerine-aa699a1283c93740bba15f94c774d92ea6fe1980.tar.gz go-tangerine-aa699a1283c93740bba15f94c774d92ea6fe1980.tar.zst go-tangerine-aa699a1283c93740bba15f94c774d92ea6fe1980.zip |
core/state: removed state from state object
Diffstat (limited to 'core/state/statedb.go')
-rw-r--r-- | core/state/statedb.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 1c75ee4db..134c4b3c7 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -296,10 +296,6 @@ func (s *StateDB) Reset() { // Reset all nested states for _, stateObject := range s.stateObjects { - if stateObject.State == nil { - continue - } - stateObject.Reset() } @@ -310,11 +306,7 @@ func (s *StateDB) Reset() { func (s *StateDB) Sync() { // Sync all nested states for _, stateObject := range s.stateObjects { - if stateObject.State == nil { - continue - } - - stateObject.State.Sync() + stateObject.trie.Commit() } s.trie.Commit() @@ -339,7 +331,7 @@ func (self *StateDB) Update() { if stateObject.remove { self.DeleteStateObject(stateObject) } else { - stateObject.Sync() + stateObject.Update() self.UpdateStateObject(stateObject) } |