routing/route: define route.ReceiverAmt() method

This commit is contained in:
Johan T. Halseth committed 2020-04-02 10:24:34 +02:00
1 parent 4485e8261f
commit 79227bab3a
3 files changed
+31 -5

No files matched your search

+1 -1
View File
@@ -1746,7 +1746,7 @@ func (r *ChannelRouter) SendToRoute(hash lntypes.Hash, route *route.Route) (
paySession := r.cfg.SessionSource.NewPaymentSessionForRoute(route)
// Calculate amount paid to receiver.
amt := route.TotalAmount - route.TotalFees()
amt := route.ReceiverAmt()
// Record this payment hash with the ControlTower, ensuring it is not
// already in-flight.