Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
This commit is contained in:
parent
16b25450fb
commit
2b7826d2af
@ -299,29 +299,7 @@ func (c *Consensus[T]) GetConsensusParams(ctx context.Context) (*cmtproto.Consen
|
||||
return nil, fmt.Errorf("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