4d8bb21d9d
This commit adds a new method to the routing.Route struct: ToHopPayloads. This function will converts a complete route into the series of per-hop payloads that is to be encoded within each HTLC using an opaque Sphinx packet. We can now use this function when creating the sphinx packet to properly encoded the hop payload for each hop in the route. |
||
---|---|---|
.. | ||
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