routing: add outgoing channel restriction

This commit is contained in:
Joost Jager committed 2019-02-08 23:05:56 +01:00
1 parent c1ab49909f
commit 7c30a8c493
9 files changed
+735 -579

No files matched your search

+4 -3
View File
@@ -148,9 +148,10 @@ func (p *paymentSession) RequestRoute(payment *LightningPayment,
bandwidthHints: p.bandwidthHints,
},
&restrictParams{
ignoredNodes: pruneView.vertexes,
ignoredEdges: pruneView.edges,
feeLimit: payment.FeeLimit,
ignoredNodes: pruneView.vertexes,
ignoredEdges: pruneView.edges,
feeLimit: payment.FeeLimit,
outgoingChannelID: payment.OutgoingChannelID,
},
p.mc.selfNode, payment.Target, payment.Amount,
)