Don't add "btcd.ldb" directory to provided path.
This commit is contained in:
parent
1530141ba0
commit
a2946ea14b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue