htlcswitch: return consistent failure message for internal error

This commit is contained in:
Joost Jager 2019-09-27 15:55:29 +02:00
parent 8ed7583448
commit aa359160de
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -2338,7 +2338,7 @@ func (l *channelLink) htlcSatifiesPolicyOutgoing(policy ForwardingPolicy,
l.ShortChanID(),
)
if err != nil {
failure = lnwire.NewTemporaryChannelFailure(update)
failure = &lnwire.FailTemporaryNodeFailure{}
} else {
failure = lnwire.NewExpiryTooSoon(*update)
}