sweep: use bbolt DB directly instead of channeldb

This commit is contained in:
Oliver Gugger committed 2019-10-14 15:32:53 +02:00
1 parent 4190146066
commit b6dda143d0
3 files changed
+4 -5

No files matched your search

+2 -3
View File
@@ -9,7 +9,6 @@ import (
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/coreos/bbolt"
"github.com/lightningnetwork/lnd/channeldb"
)
var (
@@ -57,11 +56,11 @@ type SweeperStore interface {
}
type sweeperStore struct {
db *channeldb.DB
db *bbolt.DB
}
// NewSweeperStore returns a new store instance.
func NewSweeperStore(db *channeldb.DB, chainHash *chainhash.Hash) (
func NewSweeperStore(db *bbolt.DB, chainHash *chainhash.Hash) (
SweeperStore, error) {
err := db.Update(func(tx *bbolt.Tx) error {