routing: remove path finding shortcut

This shortcut does not work when the destination is a private node. We
also don't have this shortcut for regular payments. This commit
aligns the behavior between SendPayment and QueryRoutes.
This commit is contained in:
Joost Jager committed 2020-01-15 20:32:45 +01:00
1 parent 27139b8c28
commit e9b7e80848
2 files changed
+1 -15

No files matched your search

+1 -6
View File
@@ -7,14 +7,9 @@ import "github.com/go-errors/errors"
type errorCode uint8
const (
// ErrTargetNotInNetwork is returned when the target of a path-finding
// or payment attempt isn't known to be within the current version of
// the channel graph.
ErrTargetNotInNetwork errorCode = iota
// ErrOutdated is returned when the routing update already have
// been applied, or a newer update is already known.
ErrOutdated
ErrOutdated errorCode = iota
// ErrIgnored is returned when the update have been ignored because
// this update can't bring us something new, or because a node