Merge PR #5022: Remove inter-block cache reset in init-chain

This commit is contained in:
Alexander Bezobchuk 2019-09-10 10:31:12 -04:00 committed by GitHub
parent 15517afeb2
commit ce5b36b12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -32,11 +32,6 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC
return
}
// reset the inter-block cache in case successive InitChain calls are made
if app.interBlockCache != nil {
app.interBlockCache.Reset()
}
// add block gas meter for any genesis transactions (allow infinite gas)
app.deliverState.ctx = app.deliverState.ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter())