routing: extend missionControl.RequestRoute to take final CLTV delta

This commit is contained in:
Olaoluwa Osuntokun committed 2017-10-22 18:36:58 -07:00
1 parent 828057889e
commit 76ec41103e
2 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -1216,7 +1216,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *Route
// state of the channel graph and our past HTLC routing
// successes/failures.
route, err := r.missionControl.RequestRoute(payment,
uint32(currentHeight))
uint32(currentHeight), finalCLTVDelta)
if err != nil {
// If we're unable to successfully make a payment using
// any of the routes we've found, then return an error.