lnd.xprv/routing
Johan T. Halseth 4b04e1afd1
routing: return ErrRejected if found in reject cache
We make sure to return an error other than ErrIgnored, as ErrIgnored is
expected to only be returned for updates where we already have the
necessary information in the database.

In case of a channel ID found in the rejectCache, there was a
possibility that we had rejected an invalid update for this channel
earlier, and when attempting to add the current update we wouldn't
distinguish the failure to add from an outdated/ignored update.
2018-08-23 07:40:40 +02:00
..
chainview Merge pull request #1679 from cfromknecht/move-linter-v2 2018-08-09 21:03:05 -07:00
testdata routing: path finding test refactored 2018-08-09 20:23:40 -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: backward searching 2018-08-09 20:23:40 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
missioncontrol.go routing: backward searching 2018-08-09 20:23:40 -07:00
notifications_test.go routing: update UTXO verification to use new interface, graph pruning too 2018-07-31 21:28:55 -07:00
notifications.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
pathfind_test.go routing: convert fee limit test to table-driven 2018-08-09 20:23:40 -07:00
pathfind.go routing: eliminate nested db transactions by using new FetchOtherNode method 2018-08-09 20:48:06 -07:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go router+server: use first hop channel id rather than node key 2018-08-20 21:04:52 -07:00
router.go routing: return ErrRejected if found in reject cache 2018-08-23 07:40:40 +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 routing/validation_barrier: adds ErrVBarrierShuttingDown 2018-05-08 16:32:08 -07: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