diff --git a/manager/eris-mint/eris-mint.go b/manager/eris-mint/eris-mint.go index d15f75cdd766bfc1fb000de6b1f8e246b84922e3..4375a19920590a2c3e022d088248e31dad4423d4 100644 --- a/manager/eris-mint/eris-mint.go +++ b/manager/eris-mint/eris-mint.go @@ -185,14 +185,11 @@ func (app *ErisMint) Commit() (res tmsp.Result) { // sync the AppendTx cache app.cache.Sync() - // if there were any txs in the block, - // reset the check cache to the new height - if app.nTxs > 0 { - log.WithFields(log.Fields{ - "txs": app.nTxs, - }).Info("Reset checkCache") - app.checkCache = sm.NewBlockCache(app.state) - } + // Refresh the checkCache with the latest commited state + log.WithFields(log.Fields{ + "txs": app.nTxs, + }).Info("Reset checkCache") + app.checkCache = sm.NewBlockCache(app.state) app.nTxs = 0 // save state to disk