e0ef63e4e0
This commit modifies the findRoute function to decouple the validation+creation of a route, from the path finding algorithm itself. When we say “route”, we mean the full payment route complete with time-lock and fee information. When we say “path” we simple mean an ordered set of channel edges from one node to another target node. With this commit we can now perform path finding independent of route creation which will be needed in the up coming refactor to implement a new modified k-shortest paths algorithm. |
||
---|---|---|
.. | ||
testdata | ||
errors.go | ||
fibonacci.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
README.md | ||
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