mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-27 02:55:07 +00:00
Fix state/execution ExecBlock() not rolling back
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user