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"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
|
"github.com/btcsuite/goleveldb/leveldb"
|
||||||
"github.com/conformal/btcdb"
|
"github.com/conformal/btcdb"
|
||||||
"github.com/conformal/btcutil"
|
"github.com/conformal/btcutil"
|
||||||
"github.com/conformal/btcwire"
|
"github.com/conformal/btcwire"
|
||||||
"github.com/conformal/goleveldb/leveldb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// FetchBlockBySha - return a btcutil Block
|
// FetchBlockBySha - return a btcutil Block
|
||||||
|
|
|
@ -4,8 +4,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/conformal/goleveldb/leveldb"
|
"github.com/btcsuite/goleveldb/leveldb"
|
||||||
"github.com/conformal/goleveldb/leveldb/opt"
|
"github.com/btcsuite/goleveldb/leveldb/opt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tst struct {
|
type tst struct {
|
||||||
|
|
|
@ -11,13 +11,12 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"github.com/btcsuite/goleveldb/leveldb"
|
||||||
|
"github.com/btcsuite/goleveldb/leveldb/opt"
|
||||||
"github.com/conformal/btcdb"
|
"github.com/conformal/btcdb"
|
||||||
"github.com/conformal/btclog"
|
"github.com/conformal/btclog"
|
||||||
"github.com/conformal/btcutil"
|
"github.com/conformal/btcutil"
|
||||||
"github.com/conformal/btcwire"
|
"github.com/conformal/btcwire"
|
||||||
"github.com/conformal/goleveldb/leveldb"
|
|
||||||
"github.com/conformal/goleveldb/leveldb/cache"
|
|
||||||
"github.com/conformal/goleveldb/leveldb/opt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -197,11 +196,10 @@ func openDB(dbpath string, create bool) (pbdb btcdb.Db, err error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
myCache := cache.NewEmptyCache()
|
|
||||||
opts := &opt.Options{
|
opts := &opt.Options{
|
||||||
BlockCache: myCache,
|
BlockCacher: opt.DefaultBlockCacher,
|
||||||
MaxOpenFiles: 256,
|
|
||||||
Compression: opt.NoCompression,
|
Compression: opt.NoCompression,
|
||||||
|
OpenFilesCacher: opt.DefaultOpenFilesCacher,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch dbversion {
|
switch dbversion {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
|
"github.com/btcsuite/goleveldb/leveldb"
|
||||||
"github.com/conformal/btcdb"
|
"github.com/conformal/btcdb"
|
||||||
"github.com/conformal/btcwire"
|
"github.com/conformal/btcwire"
|
||||||
"github.com/conformal/goleveldb/leveldb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type txUpdateObj struct {
|
type txUpdateObj struct {
|
||||||
|
|
Loading…
Reference in a new issue