lnwallet/channel: log pending remote commit during restore

This commit is contained in:
Johan T. Halseth 2018-05-04 13:20:11 +02:00
parent 1d172428c4
commit 1d676b77e1
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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(