mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
Validate ConsensusParams returned from abci app
This commit is contained in:
committed by
Ethan Buchman
parent
a0b2d77bef
commit
56cada6a0c
@@ -253,6 +253,12 @@ func (s *State) SetBlockAndValidators(header *types.Header, blockPartsHeader typ
|
||||
|
||||
nextParams := applyChanges(s.Params,
|
||||
abciResponses.EndBlock.ConsensusParamChanges)
|
||||
err := nextParams.Validate()
|
||||
if err != nil {
|
||||
s.logger.Error("Error updating consensus params", "err", err)
|
||||
// TODO: err or carry on?
|
||||
nextParams = s.Params
|
||||
}
|
||||
|
||||
s.setBlockAndValidators(header.Height,
|
||||
header.NumTxs,
|
||||
|
||||
Reference in New Issue
Block a user