Skip to content

routing+lnrpc: add missing query routes parameters#3911

Merged
Roasbeef merged 3 commits intolightningnetwork:masterfrom
joostjager:extend-qr
Jan 15, 2020
Merged

routing+lnrpc: add missing query routes parameters#3911
Roasbeef merged 3 commits intolightningnetwork:masterfrom
joostjager:extend-qr

Conversation

@joostjager
Copy link
Contributor

@joostjager joostjager commented Jan 14, 2020

Over time, several new parameters have been added to the payment RPCs. But QueryRoutes hasn't kept up with those. This PR adds what is missing:

  • Route hints
  • Last hop restriction
  • Outgoing channel restriction
  • Destination node features

Furthermore an inconsistency with the default final cltv delta is fixed.

Fixes #3150

@joostjager joostjager requested a review from Roasbeef as a code owner January 14, 2020 10:23
@joostjager joostjager added payments Related to invoices/payments routing rpc Related to the RPC interface labels Jan 14, 2020
@joostjager joostjager removed the request for review from Roasbeef January 14, 2020 10:24
@joostjager joostjager added this to the 0.9.0 milestone Jan 14, 2020
The default was increased for the main sendpayment RPC in commit
d3fa976. This commit sets the
same default for QueryRoutes, routerrpc.SendPayment and
router.EstimateRouteFee.
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to have this call once again have parity with SendPayment!

LGTM 🎐

@Roasbeef Roasbeef merged commit 269182c into lightningnetwork:master Jan 15, 2020
C-Otto added a commit to C-Otto/rebalance-lnd that referenced this pull request Jan 17, 2020
@C-Otto
Copy link
Contributor

C-Otto commented Jan 17, 2020

@alexbosworth #3926

@@ -1402,14 +1402,8 @@ type routingMsg struct {
func (r *ChannelRouter) FindRoute(source, target route.Vertex,
amt lnwire.MilliSatoshi, restrictions *RestrictParams,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auburn at the end of the 4th

@@ -1402,14 +1402,8 @@ type routingMsg struct {
func (r *ChannelRouter) FindRoute(source, target route.Vertex,
amt lnwire.MilliSatoshi, restrictions *RestrictParams,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1+4+0+3=8🩵™️

nova-smith702prv5 added a commit to nova-smith702prv5/rebalance-lnd that referenced this pull request Sep 29, 2025
gas-optimizer380m added a commit to gas-optimizer380m/rebalance-lnd that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

payments Related to invoices/payments routing rpc Related to the RPC interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

queryroutes uses unrouteable final_cltv_delta value by default

5 participants