5301da790c
This commit fixes an lingering bug within the path finding logic of the router. Previously we used the edge policy directly attached to the outgoing channel of the node we were traversing to calculate the fees and time lock information. This is incorrect, as we instead should be using the policy of the *connecting* node as we’ll need to pay for transit as they dictate. To remedy this, we now grab the incoming+outgoing edges and use those accordingly when building the initial path. |
||
---|---|---|
.. | ||
chainview | ||
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
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