From 1d676b77e1ab01b13a1919c19009544acf60de83 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 4 May 2018 13:20:11 +0200 Subject: [PATCH] lnwallet/channel: log pending remote commit during restore --- lnwallet/channel.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 049132a6..a50a2956 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1658,6 +1658,13 @@ func (lc *LightningChannel) restoreCommitState( } lc.remoteCommitChain.addCommitment(pendingRemoteCommit) + walletLog.Debugf("ChannelPoint(%v), pending remote "+ + "commitment: %v", lc.channelState.FundingOutpoint, + newLogClosure(func() string { + return spew.Sdump(lc.remoteCommitChain.tip()) + }), + ) + // We'll also re-create the set of commitment keys needed to // fully re-derive the state. pendingRemoteKeyChain = deriveCommitmentKeys(