lnd: properly initialize LightningWallet with new config

This commit is contained in:
Olaoluwa Osuntokun
2017-07-30 16:01:44 -07:00
parent 522712b9a6
commit a73589f3e9
3 changed files with 34 additions and 14 deletions

3
lnd.go
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,