mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02:00
routing/payment_session: make RequestRoute take max amt, fee limit and
active shards In preparation for doing pathfinding for routes sending a value less than the total payment amount, we let the payment session take the max amount to send and the fee limit as arguments to RequestRoute.
This commit is contained in:
@ -50,6 +50,8 @@ func TestRequestRoute(t *testing.T) {
|
||||
payment := &LightningPayment{
|
||||
CltvLimit: cltvLimit,
|
||||
FinalCLTVDelta: finalCltvDelta,
|
||||
Amount: 1000,
|
||||
FeeLimit: 1000,
|
||||
}
|
||||
|
||||
session := &paymentSession{
|
||||
@ -63,7 +65,9 @@ func TestRequestRoute(t *testing.T) {
|
||||
pathFinder: findPath,
|
||||
}
|
||||
|
||||
route, err := session.RequestRoute(height)
|
||||
route, err := session.RequestRoute(
|
||||
payment.Amount, payment.FeeLimit, 0, height,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user