1df5bece85
This commit modifies the existing FindRoute method on the ChannelRouter to now use the KSP implementation added in a prior commit. This new method FindRoutes, is able to find all the possible paths between a source and destination. The method takes all paths reported by findPaths, and attempt to turn each of them into a route. A route differs from a path in that is has complete time-lock and fee information. Some paths may not be able to be turned into routes as once fees are accounted for the have an insufficient flow. We then take the routes, sort them by total fee (with time-lock being a time-breaker), then return them in sorted order. |
||
---|---|---|
.. | ||
testdata | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
README.md | ||
router_test.go | ||
router.go |
routing
[] (https://travis-ci.org/lightningnetwork/lnd) [] (https://github.com/lightningnetwork/lnd/blob/master/LICENSE) [] (http://godoc.org/github.com/lightningnetwork/lnd/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