Update goleveldb import paths to new location.

Also update for changes due to the upstream sync.
This commit is contained in:
Dave Collins 2015-01-15 02:47:40 -06:00
parent b2186ae5ec
commit 97f3917fcf
4 changed files with 9 additions and 11 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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,
Compression: opt.NoCompression,
BlockCacher: opt.DefaultBlockCacher,
Compression: opt.NoCompression,
OpenFilesCacher: opt.DefaultOpenFilesCacher,
}
switch dbversion {

View file

@ -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 {