-
Notifications
You must be signed in to change notification settings - Fork 211
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
Return incorrect_or_unknown_payment_details
if a payment hash cannot be found in the federation
#3826
Comments
Here is a relevant example of how Breez implements this handling: https://github.com/breez/lspd/blob/086f78a08b23d6c7f67793e659dce5438a005f7e/interceptor/intercept_handler.go#L119-L140 |
I think the problem here is that the intermediate node (ie, gateway in the routing hint) is returning the error. Since the client created the invoice, this presents some problems. The basic/naive probing method is to make sure the payment made it to the last hop and then checking for The proposal on the call today was either:
When I worked for a custodian a few years back, people would hardcode Breez's pubkey for their probing logic. I wonder if this is standard enough now that probers always accept |
You can draw the conclusion that you are dealing with an interceptor node by looking at the channel ID of the route hint in the invoice. Since the channel ID contains the block height of the funding transaction, you can determine if this is a valid/possible block height. If you draw the conclusion that the destination is behind an interceptor node, you can also expect the But always accepting the error from either the destination or from the route hint might also make sense. |
I was told lightningnetwork/lnd#8136 may help with probing on LND, and this is the most related issue we have cc @m1sterc001guy @okjodom |
Dev call: LND will help, if custodians change, but the real fix will be to let the gateway generate the invoice which is needed anyways for other reasons. |
Some services use HTLCs with random payment hashes for probing to figure out fees ahead of time. We currently seem to return an error other than
incorrect_or_unknown_payment_details
in that case, which makes this fail.The text was updated successfully, but these errors were encountered: