mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
6c986864ff
In this commit, we fix an existing bug in the newRoute method. Before this commit we would use the time lock delta of the current hop to compute the outgoing time lock for the current hop. This is incorrect as the time lock delta of the _outgoing_ hop should be used, as this is what we're paying for "transit" on. This is a bug left over from when we switched the meaning of the CLTV delta on the ChannelUpdate message sometime last year. The fix is simple: use the CLTV delta of the prior (later in the route) hop. |
||
---|---|---|
.. | ||
chainview | ||
testdata | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
missioncontrol.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
README.md | ||
router_test.go | ||
router.go | ||
validation_barrier_test.go | ||
validation_barrier.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