(config *cfg.Config, dbProvider DBProvider)
| 233 | } |
| 234 | |
| 235 | func initDBs(config *cfg.Config, dbProvider DBProvider) (blockStore *store.BlockStore, stateDB dbm.DB, err error) { |
| 236 | var blockStoreDB dbm.DB |
| 237 | blockStoreDB, err = dbProvider(&DBContext{"blockstore", config}) |
| 238 | if err != nil { |
| 239 | return |
| 240 | } |
| 241 | blockStore = store.NewBlockStore(blockStoreDB) |
| 242 | |
| 243 | stateDB, err = dbProvider(&DBContext{"state", config}) |
| 244 | if err != nil { |
| 245 | return |
| 246 | } |
| 247 | |
| 248 | return |
| 249 | } |
| 250 | |
| 251 | func createAndStartProxyAppConns(clientCreator proxy.ClientCreator, logger log.Logger) (proxy.AppConns, error) { |
| 252 | proxyApp := proxy.NewAppConns(clientCreator) |
no test coverage detected