lnwallet/channel: log pending remote commit during restore

This commit is contained in:
Johan T. Halseth committed 2018-05-08 13:41:51 +02:00
1 parent 1d172428c4
commit 1d676b77e1
1 file changed
+7
+7
View File
@@ -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(