routing: extend missionControl.RequestRoute to take final CLTV delta

This commit is contained in:
Olaoluwa Osuntokun
2017-10-22 17:28:18 -07:00
parent 828057889e
commit 76ec41103e
2 changed files with 7 additions and 6 deletions

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.