3b94627c12
This commit removes the QueryRoutes route cache. It is causing wrong routes to be returned because not all of the request parameters are stored. The cache allowed high frequency QueryRoutes calls to the same destination and with the same amount to be returned fast. This behaviour can also be achieved by caching the request on the client side. In case a route is invalidated because of for example a channel update, the subsequent SendToRoute call will fail. This is a trigger to call QueryRoutes again for a fresh route. |
||
---|---|---|
.. | ||
chainview | ||
testdata | ||
ann_validation.go | ||
conf_experimental.go | ||
conf.go | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
missioncontrol.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
payment_session_test.go | ||
payment_session.go | ||
README.md | ||
router_test.go | ||
router.go | ||
validation_barrier_test.go | ||
validation_barrier.go |
routing
The routing package implements authentication+validation of channel announcements, pruning of the channel graph, path finding within the network, sending outgoing payments into the network and synchronizing new peers to our channel graph state.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/routing