cc19695dad
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. |
||
---|---|---|
.. | ||
chainview | ||
testdata | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
README.md | ||
router_test.go | ||
router.go |
routing
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