dont use pointers for ConsensusParams

This commit is contained in:
Ethan Buchman
2017-09-21 14:34:36 -04:00
parent 715e74186c
commit 5feeb65cf0
5 changed files with 26 additions and 23 deletions

View File

@ -570,13 +570,13 @@ func stateAndStore(config *cfg.Config, pubKey crypto.PubKey) (*sm.State, *mockBl
type mockBlockStore struct {
config *cfg.Config
params *types.ConsensusParams
params types.ConsensusParams
chain []*types.Block
commits []*types.Commit
}
// TODO: NewBlockStore(db.NewMemDB) ...
func NewMockBlockStore(config *cfg.Config, params *types.ConsensusParams) *mockBlockStore {
func NewMockBlockStore(config *cfg.Config, params types.ConsensusParams) *mockBlockStore {
return &mockBlockStore{config, params, nil, nil}
}