routing: distinguish between receiver amount and total amount in newRoute

This commit is contained in:
Joost Jager committed 2020-04-09 08:20:47 +02:00
1 parent e5c7e9a38c
commit 46f5fc7400
4 files changed
+7 -1

No files matched your search

+2
View File
@@ -1456,6 +1456,7 @@ func (r *ChannelRouter) FindRoute(source, target route.Vertex,
source, path, uint32(currentHeight),
finalHopParams{
amt: amt,
totalAmt: amt,
cltvDelta: finalExpiry,
records: destCustomRecords,
},
@@ -2513,6 +2514,7 @@ func (r *ChannelRouter) BuildRoute(amt *lnwire.MilliSatoshi,
source, pathEdges, uint32(height),
finalHopParams{
amt: receiverAmt,
totalAmt: receiverAmt,
cltvDelta: uint16(finalCltvDelta),
records: nil,
},