diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 3b513864..2a7feae2 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -1240,7 +1240,14 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) { // direct error. // // TODO(roasbeef): force close chan - if _, ok := err.(*lnwallet.InvalidCommitSigError); ok { + var sendErr bool + switch err.(type) { + case *lnwallet.InvalidCommitSigError: + sendErr = true + case *lnwallet.InvalidHtlcSigError: + sendErr = true + } + if sendErr { err := l.cfg.Peer.SendMessage(&lnwire.Error{ ChanID: l.ChanID(), Data: []byte(err.Error()),