mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-08 03:41:42 +01:00
routing: rename and export routingGraph
In preparation for structs outside of the `routing` package implementing this interface, export `routingGraph` and rename it to `Graph` so as to avoid stuttering.
This commit is contained in:
@@ -453,9 +453,9 @@ type ChannelRouter struct {
|
||||
// when doing any path finding.
|
||||
selfNode *channeldb.LightningNode
|
||||
|
||||
// cachedGraph is an instance of routingGraph that caches the source
|
||||
// cachedGraph is an instance of Graph that caches the source
|
||||
// node as well as the channel graph itself in memory.
|
||||
cachedGraph routingGraph
|
||||
cachedGraph Graph
|
||||
|
||||
// newBlocks is a channel in which new blocks connected to the end of
|
||||
// the main chain are sent over, and blocks updated after a call to
|
||||
@@ -3177,7 +3177,7 @@ func (r *ChannelRouter) BuildRoute(amt *lnwire.MilliSatoshi,
|
||||
// getRouteUnifiers returns a list of edge unifiers for the given route.
|
||||
func getRouteUnifiers(source route.Vertex, hops []route.Vertex,
|
||||
useMinAmt bool, runningAmt lnwire.MilliSatoshi,
|
||||
outgoingChans map[uint64]struct{}, graph routingGraph,
|
||||
outgoingChans map[uint64]struct{}, graph Graph,
|
||||
bandwidthHints *bandwidthManager) ([]*edgeUnifier, lnwire.MilliSatoshi,
|
||||
error) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user