diff --git a/node/node.go b/node/node.go index 58aa145ec50..d8b0d7af064 100644 --- a/node/node.go +++ b/node/node.go @@ -313,9 +313,9 @@ func createAndStartIndexerService( func DefaultDBProvider(ctx *DBContext) (dbm.DB, error) { if ctx.Config.RootDir == "" && ctx.Config.DBPath == "" { // this is used for testing - dbType := dbm.BackendType("memdb") + dbType := dbm.MemDBBackend return dbm.NewDB(ctx.ID, dbType, "memdb") } - dbType := dbm.BackendType("badgerdb") + dbType := dbm.BadgerDBBackend return dbm.NewDB(ctx.ID, dbType, ctx.Config.RootDir+ctx.Config.DBPath+"index") }