mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 13:42:15 +02:00
htlcswitch: return consistent failure message for internal error
This commit is contained in:
@@ -2338,7 +2338,7 @@ func (l *channelLink) htlcSatifiesPolicyOutgoing(policy ForwardingPolicy,
|
|||||||
l.ShortChanID(),
|
l.ShortChanID(),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failure = lnwire.NewTemporaryChannelFailure(update)
|
failure = &lnwire.FailTemporaryNodeFailure{}
|
||||||
} else {
|
} else {
|
||||||
failure = lnwire.NewExpiryTooSoon(*update)
|
failure = lnwire.NewExpiryTooSoon(*update)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user