mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
Fix state/execution ExecBlock() not rolling back
This commit is contained in:
parent
d3d7ff4818
commit
f534410e57
@ -31,10 +31,7 @@ func (s *State) ExecBlock(proxyAppCtx proxy.AppContext, block *types.Block, bloc
|
|||||||
nextValSet := valSet.Copy()
|
nextValSet := valSet.Copy()
|
||||||
|
|
||||||
// First, rollback.
|
// First, rollback.
|
||||||
if err != nil {
|
proxyAppCtx.RollbackSync()
|
||||||
proxyAppCtx.RollbackSync()
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Execute, or rollback. (Does not commit)
|
// Execute, or rollback. (Does not commit)
|
||||||
err = s.execBlockOnProxyApp(proxyAppCtx, block)
|
err = s.execBlockOnProxyApp(proxyAppCtx, block)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user