lnd.xprv/routing
Wilmer Paulino c82d73a826
channeldb+routing: extend edge lookup methods with zombie index check
In this commit, we extend the graph's FetchChannelEdgesByID and
HasChannelEdge methods to also check the zombie index whenever the edge
to be looked up doesn't exist within the edge index. We do this to
signal to callers that the edge is known, but only as a zombie, and the
only information that we have about the edge are the node public keys of
the two parties involved in the edge.

In the event that an edge does exist within the zombie index, we make
an additional check on edge policies to ensure they are not within the
router's pruning window, indicating that it is a fresh update.
2019-03-27 13:06:57 -07:00
..
chainview multi: update build to latest version of neutrino+btcwallet 2019-03-13 15:03:39 -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 lnwire+multi: define HasMaxHtlc helper on msgFlags 2019-01-22 08:42:30 +01: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 routing: abstract path finding interface 2019-03-19 10:36:48 +01:00
notifications_test.go routing/ntfns+rpcserver: include max htlc in topology notifications 2019-02-21 18:39:32 -08:00
notifications.go routing/ntfns+rpcserver: include max htlc in topology notifications 2019-02-21 18:39:32 -08:00
pathfind_test.go routing: enforce cltv limit in path finding 2019-03-19 10:36:45 +01:00
pathfind.go routing: abstract path finding interface 2019-03-19 10:36:48 +01:00
payment_session_test.go routing: add cltv limit to payment session 2019-03-19 10:36:51 +01:00
payment_session.go routing: add cltv limit to payment session 2019-03-19 10:36:51 +01:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go channeldb+routing: extend edge lookup methods with zombie index check 2019-03-27 13:06:57 -07:00
router.go channeldb+routing: extend edge lookup methods with zombie index check 2019-03-27 13:06:57 -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 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