mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
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:
@@ -23,11 +23,6 @@ type routingGraph interface {
|
|||||||
|
|
||||||
// fetchNodeFeatures returns the features of the given node.
|
// fetchNodeFeatures returns the features of the given node.
|
||||||
fetchNodeFeatures(nodePub route.Vertex) (*lnwire.FeatureVector, error)
|
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
|
// 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
|
// FetchAmountPairCapacity determines the maximal public capacity between two
|
||||||
// nodes depending on the amount we try to send.
|
// nodes depending on the amount we try to send.
|
||||||
//
|
|
||||||
// NOTE: Part of the routingGraph interface.
|
|
||||||
func (g *CachedGraph) FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex,
|
func (g *CachedGraph) FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex,
|
||||||
amount lnwire.MilliSatoshi) (btcutil.Amount, error) {
|
amount lnwire.MilliSatoshi) (btcutil.Amount, error) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user