routing: distinguish between receiver amount and total amount in newRoute

This commit is contained in:
Joost Jager
2020-03-25 14:06:48 +01:00
parent e5c7e9a38c
commit 46f5fc7400
4 changed files with 7 additions and 1 deletions

View File

@@ -196,6 +196,7 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
sourceVertex, path, height,
finalHopParams{
amt: maxAmt,
totalAmt: maxAmt,
cltvDelta: finalCltvDelta,
records: p.payment.DestCustomRecords,
paymentAddr: p.payment.PaymentAddr,