Apply suggestions from code review

Co-Authored-By: jaekwon <jae@tendermint.com>
This commit is contained in:
Alexander Bezobchuk 2018-11-24 18:10:39 -08:00 committed by GitHub
parent ce10ef2b27
commit 5792e1d5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -173,13 +173,13 @@ func (app *BaseApp) initFromMainStore(mainKey *sdk.KVStoreKey) error {
return errors.New("baseapp expects MultiStore with 'main' KVStore")
}
// memoize mainKey.
// memoize mainKey
if app.mainKey != nil {
panic("app.mainKey expected to be nil; duplicate init?")
}
app.mainKey = mainKey
// load consensus param from the main store
// load consensus params from the main store
consensusParamsBz := mainStore.Get(mainConsensusParamsKey)
if consensusParamsBz != nil {
var consensusParams = &abci.ConsensusParams{}