lnd.xprv/routing
Johan T. Halseth c9e8ff6a34
switch+router+server: move NextPaymentID to router
This commit moves the responsibility of generating a unique payment ID
from the switch to the router. This will make it easier for the router
to keep track of which HTLCs were successfully forwarded onto the
network, as it can query the switch for existing HTLCs as long as the
paymentIDs are kept.

The router is expected to maintain a map from paymentHash->paymentID,
such that they can be replayed on restart. This also lets the router
check the status of a sent payment after a restart, by querying the
switch for the paymentID in question.
2019-05-16 23:56:06 +02:00
..
chainview multi: update build to latest version of neutrino+btcwallet 2019-03-13 15:03:39 -07:00
route router: convert Route.ToHopPayloads() to Route.ToSphinxPath() 2019-04-30 20:13:32 -07:00
testdata routing: update test edge policy fields to include max htlc + new flags 2019-03-01 08:05:27 -08:00
ann_validation.go routing: skip max htlc validation when capacity is 0 2019-04-18 21:57:38 -07:00
conf_experimental.go routing/conf: add experimental assume valid conf 2018-09-03 20:15:18 -07:00
conf.go routing/conf: add experimental assume valid conf 2018-09-03 20:15:18 -07:00
errors.go routing: return ErrRejected if found in reject cache 2018-08-23 07:40:40 +02:00
graph.go routing: rewrite package to conform to BOLT07 and factor in fees+timelocks 2016-12-27 16:44:22 -08:00
heap_test.go routing: correct recent type change in heap_test.go 2018-02-12 16:44:42 -08:00
heap.go routing: enforce cltv limit in path finding 2019-03-19 10:36:45 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
missioncontrol.go lnrpc+routing: Only accept a single route for SendToRoute 2019-05-15 11:54:46 +02:00
mock_test.go switch+router+server: move NextPaymentID to router 2019-05-16 23:56:06 +02:00
notifications_test.go lnwallet: make BlockChainIO.GetUTXO take cancel chan 2019-05-09 14:44:47 +02:00
notifications.go routing/notifications: check router startd on SubscribeTopology 2019-04-02 10:21:08 +02:00
pathfind_test.go lnrpc+routing: remove k shortest path finding 2019-05-07 19:54:06 +02:00
pathfind.go lnrpc+routing: remove k shortest path finding 2019-05-07 19:54:06 +02:00
payment_session_test.go multi: move Route to sub-pkg routing/route 2019-04-29 14:52:33 +02:00
payment_session.go lnrpc+routing: Only accept a single route for SendToRoute 2019-05-15 11:54:46 +02:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go switch+router+server: move NextPaymentID to router 2019-05-16 23:56:06 +02:00
router.go switch+router+server: move NextPaymentID to router 2019-05-16 23:56:06 +02:00
validation_barrier_test.go routing/validation_barrier_test: test semaphore and quit 2018-05-08 16:32:08 -07:00
validation_barrier.go multi: move Route to sub-pkg routing/route 2019-04-29 14:52:33 +02:00

routing

Build Status MIT licensed GoDoc

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