lnd.xprv/routing
Olaoluwa Osuntokun cc19695dad
routing: reject channel announcement if connected vertexes are unknown
This commit modifies the processing in the routing package eo new
announcements. Previously,  if we cgot a cnew channel announcement but
didn’t yet know of the verses that the chanell connected, the
cnnounacment would be accepted. This behavior was eronoues as if the
channel were to be queried for, the DB query would fail as we would be
unable to retrieve the two nodes involved int he channel.

To avoid such an error case, we will now _reject_ any channel
announcements in which we don’t yet have a valid node announcement for
the connected nodes. This case has been inserted into the handling of
channel announcement, a new test has been added, and finally older
tests have also been updated to ensure that nodes are added to the
database _before_ the edge is.
2017-05-14 19:27:24 -07:00
..
chainview routing/chainview: linter fixes 2017-05-11 15:36:47 -07:00
testdata routing: add proper test for excessive number of hops 2017-02-02 00:24:16 -08:00
errors.go routing: reject channel announcement if connected vertexes are unknown 2017-05-14 19:27:24 -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: introduce a heap to keep track of closest nodes during pathfinding 2017-03-21 12:20:18 -07:00
heap.go routing: introduce new heap for storing candidate shortest paths 2017-03-21 12:20:30 -07:00
log.go routing: abandon ChainNotifier for FilteredChainView 2017-05-11 15:20:48 -07:00
notifications_test.go routing: reject channel announcement if connected vertexes are unknown 2017-05-14 19:27:24 -07:00
notifications.go discovery+routing: split 'routing' package on 'routing' and 'discovery' 2017-03-29 19:49:05 -07:00
pathfind_test.go channeldb: add storing of node signature and add edge signature 2017-03-29 19:49:05 -07:00
pathfind.go routing: add TODO in newRoute for more sanity checks 2017-04-16 15:24:17 -07:00
README.md multi: fix formatting issues in packge README's 2017-03-27 16:25:25 -07:00
router_test.go routing: reject channel announcement if connected vertexes are unknown 2017-05-14 19:27:24 -07:00
router.go routing: reject channel announcement if connected vertexes are unknown 2017-05-14 19:27:24 -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