mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 02:51:37 +02:00
autopilot: implement cached ChannelGraph
Using the cached implementation of a ChannelGraph greatly speeds up the conversion of the channel database to a SimpleGraph.
This commit is contained in:
@ -5905,7 +5905,7 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
|
||||
}
|
||||
|
||||
// Graph diameter.
|
||||
channelGraph := autopilot.ChannelGraphFromDatabase(graph)
|
||||
channelGraph := autopilot.ChannelGraphFromCachedDatabase(graph)
|
||||
simpleGraph, err := autopilot.NewSimpleGraph(channelGraph)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user