lnd.xprv/routing
Olaoluwa Osuntokun 9294358b5b
routing: populate the chain filter before calling syncGraphWithChain
In this commit we fix an existing bug within the ChannelRouter. Before
this commit, we would sync our graph prune state, *then* update the
cain filter. This is incorrect as the blocks we manually pruned may
have included channel closing transactions. As a result, we would miss
the pruning of a set of channels, and assume that they were still
active.

In this commit, we fix this by reversing the order: we first update the
chain filter and THEN sync the channel graph.
2017-11-06 16:10:24 -08:00
..
chainview routing/chainview: if column wrapping on comments in neutrino.go 2017-11-06 15:55:21 -08:00
testdata routing/testdata: modify spec example to set bob as initial source node 2017-10-22 18:36:58 -07:00
errors.go routing: Require adding edge to node before adding node. 2017-08-02 15:58:58 -07: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: replace sort.Sort with sort.Slice in heap_test.go 2017-10-02 23:13:47 -07:00
heap.go routing: introduce new heap for storing candidate shortest paths 2017-03-21 12:20:30 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
missioncontrol.go routing: extend missionControl.RequestRoute to take final CLTV delta 2017-10-22 18:36:58 -07:00
notifications_test.go routing: add Reset() method to mockChainView 2017-11-06 15:58:57 -08:00
notifications.go routing: update path finding and notifications to use mSAT 2017-08-22 00:53:12 -07:00
pathfind_test.go routing: modify path finding tests to accommodate for flip in fee calc 2017-10-24 18:29:23 -07:00
pathfind.go routing: correct miscalculation multi-hop onion payload fees 2017-10-24 18:27:35 -07:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go routing: add new TestRouterChansClosedOfflinePruneGraph test 2017-11-06 16:06:15 -08:00
router.go routing: populate the chain filter before calling syncGraphWithChain 2017-11-06 16:10:24 -08: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