455568279b
This commit fixes an existing bug within the ChannelRouter. Prior to this commit, if the chain view skipped blocks or for some reason we had a gap in blocks delivered, then we would simply accept them. This had the potential to cause us to miss on-chain channel closure events. To remedy this, we won’t process any blocks whose heights aren’t *strictly* increasing. A longer term fix would be to have the ChainView take a block height, and re-dispatch any notifications from that height to the current height. |
||
---|---|---|
.. | ||
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