Skip to content

Commit

Permalink
fix resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Sep 13, 2023
1 parent 32c5754 commit 4429628
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,19 +730,6 @@ func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Respons
WithHeaderHash(req.Hash)
}

if app.preBlocker != nil {
ctx := app.finalizeBlockState.ctx
rsp, err := app.preBlocker(ctx, req)
if err != nil {
return nil, err
}
// rsp.ConsensusParamsChanged is true from preBlocker means ConsensusParams in store get changed
// write the consensus parameters in store to context
if rsp.ConsensusParamsChanged {
app.finalizeBlockState.ctx = ctx.WithConsensusParams(app.GetConsensusParams(ctx))
}
}

if err := app.preBlock(); err != nil {
return nil, err
}
Expand Down

0 comments on commit 4429628

Please sign in to comment.