Browse Source

Fix state/execution ExecBlock() not rolling back

pull/169/head
Jae Kwon 9 years ago
parent
commit
f534410e57
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      state/execution.go

+ 1
- 4
state/execution.go View File

@ -31,10 +31,7 @@ func (s *State) ExecBlock(proxyAppCtx proxy.AppContext, block *types.Block, bloc
nextValSet := valSet.Copy()
// First, rollback.
if err != nil {
proxyAppCtx.RollbackSync()
return err
}
proxyAppCtx.RollbackSync()
// Execute, or rollback. (Does not commit)
err = s.execBlockOnProxyApp(proxyAppCtx, block)


Loading…
Cancel
Save