ConsensusParams ptr in GenesisDoc for json

This commit is contained in:
Ethan Buchman
2017-09-21 15:22:58 -04:00
parent 3089bbf2b8
commit 1f0985689d
3 changed files with 5 additions and 6 deletions

View File

@ -266,7 +266,7 @@ func (s *State) GetValidators() (*types.ValidatorSet, *types.ValidatorSet) {
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
return *s.GenesisDoc.ConsensusParams
}
//------------------------------------------------------------------------