Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: make SendToRoute consistent with other payment RPC #3790

Merged
merged 4 commits into from
Dec 5, 2019

Conversation

Roasbeef
Copy link
Member

@Roasbeef Roasbeef commented Dec 4, 2019

In this PR, we make the SendToRoute RPC call consistent with
all the other payment RPCs which will properly adhere to the current max
payment sat limit. This is a prep commit for the future wumbo soft cap
that will eventually land in lnd. Along the we also add some additional consistency
checks to ensure our externally advertised MaxHTLC routing policy is consistent
with this value.

In this commitment, we make the `SendToRoute` RPC call consistent with
all the other payment RPCs which will properly adhere to the current max
payment sat limit. This is a prep commit for the future wumbo soft cap
that will eventually land in lnd.
…ay size

In this commit, we start to clamp the max HTLC forwarding policy to the
current register max HTLC payment size. By doing this, we ensure that
any links that have a advertised max HTLC transit size above the max
payment size will reject any incoming or outgoing attempts for such
large payments.
Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM

@Roasbeef Roasbeef merged commit 773aa39 into lightningnetwork:master Dec 5, 2019
@Roasbeef Roasbeef added this to the 0.8.2 milestone Dec 5, 2019
@juscamarena
Copy link
Contributor

juscamarena commented Dec 5, 2019

I can understand limiting the SendToRoute from paying wumbo invoices, but why kill routing? The network has allowed it without issue and no one has complained ever. Eclair also allows the same and I just asked them and they're not lowering their routing htlc max amount.

Bitrefill already has users paying us over the old payment limit with some of them being routed wumbo payments. . . Releasing this as the default will just kill this unless most node operators change their defaults. Why not wait until MPP is out then a change like this isn't such a big deal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants