aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-24 18:20:43 +0800
committerobscuren <geffobscura@gmail.com>2014-12-24 18:20:43 +0800
commitfb1edd05f40bad04f2514d1463b5593dc51e9f77 (patch)
treeb16bcdf911f3630153d27060b2cb143900fdcaf4 /core
parent780abaec988df302e0c98f1a35e9af35b5623746 (diff)
downloadgo-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.gz
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.bz2
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.lz
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.xz
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.zst
go-tangerine-fb1edd05f40bad04f2514d1463b5593dc51e9f77.zip
Removed the deferred reset
Diffstat (limited to 'core')
-rw-r--r--core/block_manager.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/block_manager.go b/core/block_manager.go
index 1b9da1269..8a5455306 100644
--- a/core/block_manager.go
+++ b/core/block_manager.go
@@ -185,12 +185,6 @@ func (sm *BlockManager) ProcessWithParent(block, parent *types.Block) (td *big.I
state := state.New(parent.Trie().Copy())
- // Defer the Undo on the Trie. If the block processing happened
- // we don't want to undo but since undo only happens on dirty
- // nodes this won't happen because Commit would have been called
- // before that.
- defer state.Reset()
-
// Block validation
if err = sm.ValidateBlock(block, parent); err != nil {
return