routing: handle onion errors in ChannelRouter

This commit is contained in:
John Griffith authored and Olaoluwa Osuntokun committed 2017-10-02 22:13:05 -07:00
1 parent 54c4fc4559
commit 1057a1a7c3
2 files changed
+45 -3

No files matched your search

+1 -2
View File
@@ -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