From 6b7e9f8935e7ec2af61a3b17c3daab24ab0cfde0 Mon Sep 17 00:00:00 2001 From: Alexander Peters Date: Wed, 31 Jul 2024 15:51:48 +0200 Subject: [PATCH] fix: fixes evidence skipped (#21122) --- server/v2/cometbft/utils.go | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/server/v2/cometbft/utils.go b/server/v2/cometbft/utils.go index 7f513fb3e6..e97f09716d 100644 --- a/server/v2/cometbft/utils.go +++ b/server/v2/cometbft/utils.go @@ -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 } }