lnd: properly initialize LightningWallet with new config

This commit is contained in:
Olaoluwa Osuntokun committed 2017-07-30 17:52:07 -07:00
1 parent 522712b9a6
commit a73589f3e9
3 files changed
+34 -14

No files matched your search

+2 -1
View File
@@ -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,