routing: add todo describing route cache bug
This commit is contained in:
parent
6e10c05a82
commit
6cc82b4a34
@ -1338,9 +1338,13 @@ func (r *ChannelRouter) FindRoutes(source, target Vertex,
|
|||||||
|
|
||||||
log.Debugf("Searching for path to %x, sending %v", target, amt)
|
log.Debugf("Searching for path to %x, sending %v", target, amt)
|
||||||
|
|
||||||
// Before attempting to perform a series of graph traversals to find
|
// Before attempting to perform a series of graph traversals to find the
|
||||||
// the k-shortest paths to the destination, we'll first consult our
|
// k-shortest paths to the destination, we'll first consult our path
|
||||||
// path cache
|
// cache
|
||||||
|
//
|
||||||
|
// TODO: Route cache should store all request parameters instead of just
|
||||||
|
// amt and target. Currently false positives are returned if just the
|
||||||
|
// restrictions (fee limit, ignore lists) or finalExpiry are different.
|
||||||
rt := newRouteTuple(amt, target[:])
|
rt := newRouteTuple(amt, target[:])
|
||||||
r.routeCacheMtx.RLock()
|
r.routeCacheMtx.RLock()
|
||||||
routes, ok := r.routeCache[rt]
|
routes, ok := r.routeCache[rt]
|
||||||
|
Loading…
Reference in New Issue
Block a user