33ce4e5689
In this commit, we add a new abstraction, the ValidationBarrier. This struct will be used to allow parallel validation of announcements within notes AuthenticatedGossiper as well as the ChannelRouter. Naively validating the announcement in parallel would run into issues as it would be possible for validate an update announcement, before validating the channel announcement itself. We solve this by creating a waiting dependance using the ValidationBarrier to ensure that the defendant jobs wait until their parents have been full validated. |
||
---|---|---|
.. | ||
chainview | ||
testdata | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
log.go | ||
missioncontrol.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
README.md | ||
router_test.go | ||
router.go | ||
validation_barrier.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