Apply suggestions from code review
Co-Authored-By: jaekwon <jae@tendermint.com>
This commit is contained in:
parent
ce10ef2b27
commit
5792e1d5c4
|
@ -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{}
|
||||
|
|
Loading…
Reference in New Issue