htlcswitch: log dangling circuits in unable to create new commitment

This commit is contained in:
Olaoluwa Osuntokun 2018-03-12 18:53:21 -07:00
parent bdd01cccb2
commit 069311c47f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1439,8 +1439,10 @@ func (l *channelLink) updateCommitTx() error {
theirCommitSig, htlcSigs, err := l.channel.SignNextCommitment() theirCommitSig, htlcSigs, err := l.channel.SignNextCommitment()
if err == lnwallet.ErrNoWindow { if err == lnwallet.ErrNoWindow {
log.Tracef("revocation window exhausted, unable to send %v", l.tracef("revocation window exhausted, unable to send: %v, "+
l.batchCounter) "dangling_opens=%v, dangling_closes%v",
l.batchCounter, spew.Sdump(l.openedCircuits),
spew.Sdump(l.closedCircuits))
return nil return nil
} else if err != nil { } else if err != nil {
return err return err