mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 22:54:26 +01:00
routing: end path finding on an additional set of critical-ish errors
This commit is contained in:
@@ -1293,25 +1293,29 @@ sendLoop:
|
|||||||
if err := r.applyChannelUpdate(&update); err != nil {
|
if err := r.applyChannelUpdate(&update); err != nil {
|
||||||
return preImage, nil, err
|
return preImage, nil, err
|
||||||
}
|
}
|
||||||
continue
|
|
||||||
|
return preImage, nil, sendError
|
||||||
case *lnwire.FailFeeInsufficient:
|
case *lnwire.FailFeeInsufficient:
|
||||||
update := onionErr.Update
|
update := onionErr.Update
|
||||||
if err := r.applyChannelUpdate(&update); err != nil {
|
if err := r.applyChannelUpdate(&update); err != nil {
|
||||||
return preImage, nil, err
|
return preImage, nil, err
|
||||||
}
|
}
|
||||||
continue
|
|
||||||
|
return preImage, nil, sendError
|
||||||
case *lnwire.FailIncorrectCltvExpiry:
|
case *lnwire.FailIncorrectCltvExpiry:
|
||||||
update := onionErr.Update
|
update := onionErr.Update
|
||||||
if err := r.applyChannelUpdate(&update); err != nil {
|
if err := r.applyChannelUpdate(&update); err != nil {
|
||||||
return preImage, nil, err
|
return preImage, nil, err
|
||||||
}
|
}
|
||||||
continue
|
|
||||||
|
return preImage, nil, sendError
|
||||||
case *lnwire.FailChannelDisabled:
|
case *lnwire.FailChannelDisabled:
|
||||||
update := onionErr.Update
|
update := onionErr.Update
|
||||||
if err := r.applyChannelUpdate(&update); err != nil {
|
if err := r.applyChannelUpdate(&update); err != nil {
|
||||||
return preImage, nil, err
|
return preImage, nil, err
|
||||||
}
|
}
|
||||||
continue
|
|
||||||
|
return preImage, nil, sendError
|
||||||
case *lnwire.FailTemporaryChannelFailure:
|
case *lnwire.FailTemporaryChannelFailure:
|
||||||
update := onionErr.Update
|
update := onionErr.Update
|
||||||
if err := r.applyChannelUpdate(update); err != nil {
|
if err := r.applyChannelUpdate(update); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user