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
co-authored by jaekwon
parent ce10ef2b27
commit 5792e1d5c4
+2 -2
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{}