(config *cfg.Config, dbProvider DBProvider)
| 260 | } |
| 261 | |
| 262 | func initDBs(config *cfg.Config, dbProvider DBProvider) (blockStore *store.BlockStore, stateDB dbm.DB, err error) { |
| 263 | var blockStoreDB dbm.DB |
| 264 | blockStoreDB, err = dbProvider(&DBContext{"blockstore", config}) |
| 265 | if err != nil { |
| 266 | return |
| 267 | } |
| 268 | blockStore = store.NewBlockStore(blockStoreDB) |
| 269 | |
| 270 | stateDB, err = dbProvider(&DBContext{"state", config}) |
| 271 | if err != nil { |
| 272 | return |
| 273 | } |
| 274 | |
| 275 | return |
| 276 | } |
| 277 | |
| 278 | func createAndStartProxyAppConns(clientCreator proxy.ClientCreator, logger log.Logger) (proxy.AppConns, error) { |
| 279 | proxyApp := proxy.NewAppConns(clientCreator) |
no test coverage detected