htlcswitch: return consistent failure message for internal error
This commit is contained in:
parent
8ed7583448
commit
aa359160de
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user