3ba70fe6ec
This commit modifies the way we currently interpret errors when sending payments via the SendToSwitch method. We split the errors into two broad sections: critical errors which cause us to abandon the payment dispatch all together, and errors which are transient meaning we should continue trying to remainder of the returned routes. Note that we haven’t yet properly implemented all the necessary measures such as filtering edges that are detected as being temporarily inactive, etc. This change should correct erroneous behavior such as continuing to try all available routes in the face of an invalid payment hash error and the like. |
||
---|---|---|
.. | ||
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