Don't add "btcd.ldb" directory to provided path.

This commit is contained in:
Dave Collins 2013-09-13 17:31:00 -05:00
parent 1530141ba0
commit a2946ea14b

View file

@ -13,7 +13,6 @@ import (
"github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"
"os" "os"
"path/filepath"
"runtime" "runtime"
"sync" "sync"
) )
@ -156,8 +155,7 @@ func openDB(dbpath string, flag opt.OptionsFlag) (pbdb btcdb.Db, err error) {
} }
} }
lDbName := filepath.Join(dbpath, "btcd.ldb") tlDb, err = leveldb.OpenFile(dbpath, &opt.Options{Flag: flag})
tlDb, err = leveldb.OpenFile(lDbName, &opt.Options{Flag: flag})
if err != nil { if err != nil {
return return
} }