htlcswitch: log dangling circuits in unable to create new commitment

This commit is contained in:
Olaoluwa Osuntokun committed 2018-03-12 18:58:45 -07:00
1 parent bdd01cccb2
commit 069311c47f
1 file changed
+4 -2
+4 -2
View File
@@ -1439,8 +1439,10 @@ func (l *channelLink) updateCommitTx() error {
theirCommitSig, htlcSigs, err := l.channel.SignNextCommitment()
if err == lnwallet.ErrNoWindow {
log.Tracef("revocation window exhausted, unable to send %v",
l.batchCounter)
l.tracef("revocation window exhausted, unable to send: %v, "+
"dangling_opens=%v, dangling_closes%v",
l.batchCounter, spew.Sdump(l.openedCircuits),
spew.Sdump(l.closedCircuits))
return nil
} else if err != nil {
return err