lnd.xprv/routing
nsa 678fb674eb routing: move call to PruneGraph outside of the collating loop
This commit moves the call to PruneGraph outside of the loop
that collates all of the spentOutputs. With this change, if
a node has been offline for a long period of time, resyncing
with the chain no longer takes up as much memory (1MB vs 200MB
in some cases) or time. Previously, PruneGraph was called
for every block and allocated a very large map further down
in the pruneGraphNodes function. Now, pruneGraphNodes is only
called once.
2019-07-02 21:21:28 -04:00
..
chainview multi: update build to latest version of neutrino+btcwallet 2019-03-13 15:03:39 -07:00
route routing: Route String() method 2019-06-04 10:00:15 +02: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
control_tower_test.go channeldb: add subscription to control tower 2019-06-05 12:41:49 +02:00
control_tower.go channeldb: add subscription to control tower 2019-06-05 12:41:49 +02: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: use probability source in path finding 2019-06-04 10:00:21 +02:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
missioncontrol_test.go routing+routerrpc: expose mission control parameters in lnd config 2019-06-04 13:22:50 +02:00
missioncontrol.go routing+routerrpc: expose mission control parameters in lnd config 2019-06-04 13:22:50 +02:00
mock_test.go multi: make GetPaymentResult take payment hash 2019-06-07 16:53:32 +02:00
notifications_test.go routing: add color to node update 2019-05-23 10:52:12 +02:00
notifications.go routing: add color to node update 2019-05-23 10:52:12 +02:00
pathfind_test.go routing: global probability based mission control 2019-06-04 10:00:25 +02:00
pathfind.go routing+routerrpc: expose mission control parameters in lnd config 2019-06-04 13:22:50 +02:00
payment_lifecycle.go rpcserver+router: log terminal sendPayment error 2019-07-01 16:22:57 -07:00
payment_session_test.go routing: move default cltv assignment out of router 2019-06-05 12:41:43 +02:00
payment_session.go routing+routerrpc: expose mission control parameters in lnd config 2019-06-04 13:22:50 +02:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go Merge pull request #2802 from joostjager/probability 2019-06-05 11:30:55 +02:00
router.go routing: move call to PruneGraph outside of the collating loop 2019-07-02 21:21:28 -04:00
stats.go routing/router: log aggregate graph processing stats 2019-06-13 18:18:30 -07: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