refactor: migrate to query Consensus Params (#19600)

Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Facundo <facundomedica@gmail.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
This commit is contained in:
Marko
2024-04-25 15:26:43 +00:00
committed by GitHub
co-authored by Julien Robert Facundo Facundo Medica Matt Kocubinski Hieu Vu
parent c6890b3876
commit b15732a594
45 changed files with 375 additions and 127 deletions
+2
View File
@@ -102,6 +102,8 @@ func (c Context) HeaderHash() []byte {
return hash
}
// Deprecated: getting consensus params from the context is deprecated and will be removed after 0.51
// Querying the consensus module for the parameters is required in server/v2
func (c Context) ConsensusParams() cmtproto.ConsensusParams {
return c.consParams
}