dont use pointers for ConsensusParams

This commit is contained in:
Ethan Buchman
2017-09-21 14:59:24 -04:00
parent 715e74186c
commit 5feeb65cf0
5 changed files with 26 additions and 23 deletions
+3 -1
View File
@@ -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
}