From e3e2ba342c51c926268b722a5350c80d1c36d690 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 14 Dec 2016 17:48:37 -0800 Subject: [PATCH] lnwallet: properly set nodeAddr during channel reservation init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a lingering bug within the channel funding reservation workflow that caused the address of a channel counter-party to not be written to disk, resulting in an error on start up. To fix this, we now properly populate the node’s TCP address when initiating the reservation. --- lnwallet/wallet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 356b929a7..44d60258d 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -501,6 +501,7 @@ func (l *LightningWallet) InitChannelReservation(capacity, csvDelay: csvDelay, ourDustLimit: ourDustLimit, nodeID: theirID, + nodeAddr: theirAddr, err: errChan, resp: respChan, }