8ed79ae497
This commit fixes a bug which was originally introduced when the topology notifications were added to the channel router. The issue was that a pointer to the loop-scope range variable was being passed into the goroutine which dispatches the notification rather than the value itself. It seems that the memory location is re-used between range iterations causing the same client to receive _all_ the notifications. This bug is fixed by passing a copy of the client struct rather than a pointer to the range variable. In the process, we also add some additional debug logging messages, and remove the Curve parameter from any public keys involved in a notification so the pretty print properly. |
||
---|---|---|
.. | ||
testdata | ||
errors.go | ||
fibonacci.go | ||
graph.go | ||
log.go | ||
notifications_test.go | ||
notifications.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