mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
lnd: properly initialize LightningWallet with new config
This commit is contained in:
3
lnd.go
3
lnd.go
@@ -22,6 +22,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/lnwallet"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/roasbeef/btcd/btcec"
|
||||
"github.com/roasbeef/btcutil"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -145,7 +146,7 @@ func lndMain() error {
|
||||
}
|
||||
|
||||
for _, channel := range dbChannels {
|
||||
if chanID.IsChanPoint(channel.ChanID) {
|
||||
if chanID.IsChanPoint(&channel.FundingOutpoint) {
|
||||
return lnwallet.NewLightningChannel(
|
||||
activeChainControl.signer,
|
||||
activeChainControl.chainNotifier,
|
||||
|
Reference in New Issue
Block a user