From 5792e1d5c44a01e9b02347225d980d93b15baf3d Mon Sep 17 00:00:00 2001 From: Alexander Bezobchuk Date: Sat, 24 Nov 2018 18:10:39 -0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: jaekwon --- baseapp/baseapp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index f4c20ca905..b2e07c5881 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -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{}