ce7179a468
This commit adds basic route pruning in response to HTLC onion errors. With this new change, the router will now prune routes in response to HTLC errors, which will reduce the time to payment success, and also avoid a bunch of unnecessary network traffic. We now respond to two errors lnwire.FailTemporaryChannelFailure and lnwire.FailUnknownNextPeer. In response to the first error, we’ll prune all routes that contain the channel which was unable to be routed over. In response to the second error we’ll prune all routes that contain the node which couldn’t be found. |
||
---|---|---|
.. | ||
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