diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-24 18:20:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-24 18:20:43 +0800 |
commit | fb1edd05f40bad04f2514d1463b5593dc51e9f77 (patch) | |
tree | b16bcdf911f3630153d27060b2cb143900fdcaf4 /core | |
parent | 780abaec988df302e0c98f1a35e9af35b5623746 (diff) | |
download | dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.gz dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.bz2 dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.lz dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.xz dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.tar.zst dexon-fb1edd05f40bad04f2514d1463b5593dc51e9f77.zip |
Removed the deferred reset
Diffstat (limited to 'core')
-rw-r--r-- | core/block_manager.go | 6 |
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 |