mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 09:03:15 +02:00
routing: handle onion errors in ChannelRouter
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
54c4fc4559
commit
1057a1a7c3
@@ -2,7 +2,6 @@ package routing
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"image/color"
|
||||
"testing"
|
||||
@@ -180,7 +179,7 @@ func TestSendPaymentRouteFailureFallback(t *testing.T) {
|
||||
_ *lnwire.UpdateAddHTLC, _ *sphinx.Circuit) ([32]byte, error) {
|
||||
|
||||
if ctx.aliases["luoji"].IsEqual(n) {
|
||||
return [32]byte{}, errors.New("send error")
|
||||
return [32]byte{}, &lnwire.FailChannelDisabled{}
|
||||
}
|
||||
|
||||
return preImage, nil
|
||||
|
Reference in New Issue
Block a user