mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
In this commit, we add a `GraphSession` method to the `ChannelGraph`. This method provides a caller with access to a `NodeTraverser`. This is used by pathfinding to create a graph "session" overwhich to perform a set of queries for a pathfinding attempt. With this refactor, we hide details such as DB transaction creation and transaction commits from the caller. So with this, pathfinding does not need to remember to "close the graph session". With this commit, the `graphsession` package may be completely removed. |
||
---|---|---|
.. | ||
db | ||
testdata | ||
builder.go | ||
builder_test.go | ||
errors.go | ||
interfaces.go | ||
log.go | ||
notifications.go | ||
notifications_test.go | ||
setup_test.go | ||
stats.go |