routing: allow specifying a fee limit during route construction

This commit is contained in:
Wilmer Paulino committed 2018-06-12 18:14:48 -07:00
1 parent 6a6de812ba
commit ddf8f2cb01
6 files changed
+143 -36

No files matched your search

+2 -1
View File
@@ -384,7 +384,8 @@ func (p *paymentSession) RequestRoute(payment *LightningPayment,
// a route by applying the time-lock and fee requirements.
sourceVertex := Vertex(p.mc.selfNode.PubKeyBytes)
route, err := newRoute(
payment.Amount, sourceVertex, path, height, finalCltvDelta,
payment.Amount, payment.FeeLimit, sourceVertex, path, height,
finalCltvDelta,
)
if err != nil {
// TODO(roasbeef): return which edge/vertex didn't work