mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
routing: distinguish between receiver amount and total amount in newRoute
This commit is contained in:
@ -74,6 +74,7 @@ type edgePolicyWithSource struct {
|
||||
// custom records and payment address.
|
||||
type finalHopParams struct {
|
||||
amt lnwire.MilliSatoshi
|
||||
totalAmt lnwire.MilliSatoshi
|
||||
cltvDelta uint16
|
||||
records record.CustomSet
|
||||
paymentAddr *[32]byte
|
||||
@ -177,7 +178,8 @@ func newRoute(sourceVertex route.Vertex,
|
||||
// Otherwise attach the mpp record if it exists.
|
||||
if finalHop.paymentAddr != nil {
|
||||
mpp = record.NewMPP(
|
||||
finalHop.amt, *finalHop.paymentAddr,
|
||||
finalHop.totalAmt,
|
||||
*finalHop.paymentAddr,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user