fix: fixes evidence skipped (#21122)
This commit is contained in:
parent
df72853b3c
commit
6b7e9f8935
@ -300,29 +300,7 @@ func (c *Consensus[T]) GetConsensusParams(ctx context.Context) (*cmtproto.Consen
|
||||
return nil, errors.New("failed to query consensus params")
|
||||
} else {
|
||||
// convert our params to cometbft params
|
||||
evidenceMaxDuration := r.Params.Evidence.MaxAgeDuration
|
||||
cs := &cmtproto.ConsensusParams{
|
||||
Block: &cmtproto.BlockParams{
|
||||
MaxBytes: r.Params.Block.MaxBytes,
|
||||
MaxGas: r.Params.Block.MaxGas,
|
||||
},
|
||||
Evidence: &cmtproto.EvidenceParams{
|
||||
MaxAgeNumBlocks: r.Params.Evidence.MaxAgeNumBlocks,
|
||||
MaxAgeDuration: evidenceMaxDuration,
|
||||
},
|
||||
Validator: &cmtproto.ValidatorParams{
|
||||
PubKeyTypes: r.Params.Validator.PubKeyTypes,
|
||||
},
|
||||
Version: &cmtproto.VersionParams{
|
||||
App: r.Params.Version.App,
|
||||
},
|
||||
}
|
||||
if r.Params.Abci != nil {
|
||||
cs.Abci = &cmtproto.ABCIParams{ // nolint:staticcheck // deprecated type still supported for now
|
||||
VoteExtensionsEnableHeight: r.Params.Abci.VoteExtensionsEnableHeight,
|
||||
}
|
||||
}
|
||||
return cs, nil
|
||||
return r.Params, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user