routing: remove un-used method from routingGraph interface

We really want to narrow down the interface we provide the router, so
let's start here.
This commit is contained in:
Elle Mouton 2024-06-14 18:34:09 -04:00
parent 09b38aaa01
commit 5c18b5a042
No known key found for this signature in database
GPG Key ID: D7D916376026F177

View File

@ -23,11 +23,6 @@ type routingGraph interface {
// fetchNodeFeatures returns the features of the given node.
fetchNodeFeatures(nodePub route.Vertex) (*lnwire.FeatureVector, error)
// FetchAmountPairCapacity determines the maximal capacity between two
// pairs of nodes.
FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex,
amount lnwire.MilliSatoshi) (btcutil.Amount, error)
}
// CachedGraph is a routingGraph implementation that retrieves from the
@ -97,8 +92,6 @@ func (g *CachedGraph) fetchNodeFeatures(nodePub route.Vertex) (
// FetchAmountPairCapacity determines the maximal public capacity between two
// nodes depending on the amount we try to send.
//
// NOTE: Part of the routingGraph interface.
func (g *CachedGraph) FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex,
amount lnwire.MilliSatoshi) (btcutil.Amount, error) {