Merge pull request #4107 from Crypt-iQ/switch_err_0220

htlcswitch: log fixes
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2020-03-26 16:45:58 -07:00
commit 31de32686e
5 files changed
+187 -17

No files matched your search

+5 -5
View File
@@ -2060,6 +2060,10 @@ func (l *channelLink) updateCommitTx() error {
return err
}
if err := l.ackDownStreamPackets(); err != nil {
return err
}
// The remote party now has a new pending commitment, so we'll update
// the contract court to be aware of this new set (the prior old remote
// pending).
@@ -2069,11 +2073,7 @@ func (l *channelLink) updateCommitTx() error {
Htlcs: pendingHTLCs,
}:
case <-l.quit:
return nil
}
if err := l.ackDownStreamPackets(); err != nil {
return err
return ErrLinkShuttingDown
}
commitSig := &lnwire.CommitSig{