Update goleveldb import paths to new location.
Also update for changes due to the upstream sync.
This commit is contained in:
parent
b2186ae5ec
commit
97f3917fcf
4 changed files with 9 additions and 11 deletions
|
@ -8,10 +8,10 @@ import (
|
|||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/btcsuite/goleveldb/leveldb"
|
||||
"github.com/conformal/btcdb"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/goleveldb/leveldb"
|
||||
)
|
||||
|
||||
// FetchBlockBySha - return a btcutil Block
|
||||
|
|
|
@ -4,8 +4,8 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/conformal/goleveldb/leveldb"
|
||||
"github.com/conformal/goleveldb/leveldb/opt"
|
||||
"github.com/btcsuite/goleveldb/leveldb"
|
||||
"github.com/btcsuite/goleveldb/leveldb/opt"
|
||||
)
|
||||
|
||||
type tst struct {
|
||||
|
|
|
@ -11,13 +11,12 @@ import (
|
|||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/btcsuite/goleveldb/leveldb"
|
||||
"github.com/btcsuite/goleveldb/leveldb/opt"
|
||||
"github.com/conformal/btcdb"
|
||||
"github.com/conformal/btclog"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/goleveldb/leveldb"
|
||||
"github.com/conformal/goleveldb/leveldb/cache"
|
||||
"github.com/conformal/goleveldb/leveldb/opt"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -197,11 +196,10 @@ func openDB(dbpath string, create bool) (pbdb btcdb.Db, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
myCache := cache.NewEmptyCache()
|
||||
opts := &opt.Options{
|
||||
BlockCache: myCache,
|
||||
MaxOpenFiles: 256,
|
||||
BlockCacher: opt.DefaultBlockCacher,
|
||||
Compression: opt.NoCompression,
|
||||
OpenFilesCacher: opt.DefaultOpenFilesCacher,
|
||||
}
|
||||
|
||||
switch dbversion {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/btcsuite/goleveldb/leveldb"
|
||||
"github.com/conformal/btcdb"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/goleveldb/leveldb"
|
||||
)
|
||||
|
||||
type txUpdateObj struct {
|
||||
|
|
Loading…
Reference in a new issue