mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 11:32:26 +02:00
multi: move bandwidth hints behind interface
This commit is contained in:
@ -164,7 +164,7 @@ type PaymentSession interface {
|
||||
type paymentSession struct {
|
||||
additionalEdges map[route.Vertex][]*channeldb.CachedEdgePolicy
|
||||
|
||||
getBandwidthHints func() (map[uint64]lnwire.MilliSatoshi, error)
|
||||
getBandwidthHints func() (bandwidthHints, error)
|
||||
|
||||
payment *LightningPayment
|
||||
|
||||
@ -192,7 +192,7 @@ type paymentSession struct {
|
||||
|
||||
// newPaymentSession instantiates a new payment session.
|
||||
func newPaymentSession(p *LightningPayment,
|
||||
getBandwidthHints func() (map[uint64]lnwire.MilliSatoshi, error),
|
||||
getBandwidthHints func() (bandwidthHints, error),
|
||||
routingGraph routingGraph,
|
||||
missionControl MissionController, pathFindingConfig PathFindingConfig) (
|
||||
*paymentSession, error) {
|
||||
|
Reference in New Issue
Block a user