Skip to content
Snippets Groups Projects
Unverified Commit 2ff7e807 authored by Silas Davis's avatar Silas Davis
Browse files

Don't special case empty blocks when refreshing the checkCache on commit

parent f17a96d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment