mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
dont use pointers for ConsensusParams
This commit is contained in:
+3
-1
@@ -263,7 +263,9 @@ func (s *State) GetValidators() (*types.ValidatorSet, *types.ValidatorSet) {
|
||||
|
||||
// Params returns the consensus parameters used for
|
||||
// validating blocks
|
||||
func (s *State) Params() *types.ConsensusParams {
|
||||
func (s *State) Params() types.ConsensusParams {
|
||||
// TODO: this should move into the State proper
|
||||
// when we allow the app to change it
|
||||
return s.GenesisDoc.ConsensusParams
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user