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:
co-authored by
Julien Robert
Facundo
Facundo Medica
Matt Kocubinski
Hieu Vu
parent
c6890b3876
commit
b15732a594
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user