4200d8a7e0
This fixes the bug reproduced in #114. The prevHop map in newRoute may include many more edges than what is used to produce the final route, and thus the check prior to building the route could result with incorrect errors being reported. We move this check to after the number of edges to be used for the route is deduced. |
||
---|---|---|
.. | ||
testdata | ||
errors.go | ||
fibonacci.go | ||
graph.go | ||
log.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