-
Notifications
You must be signed in to change notification settings - Fork 895
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
Can't return incorrect_or_unknown_payment_details
from htlc_accepted
#4070
Comments
We added a conversion of failcodes that do not have sufficient information in faac4b2. That means that a failcode that'd require additional information in order to be a correct error to return in an onion is mapped to a generic one since we can't backfill the information. This tests that the mapping is performed correctly and replicates the situation in ElementsProject#4070
I'm assuming that you are returning a
lightning/lightningd/peer_htlcs.c Lines 807 to 835 in 7db8680
If you want to return I added #4084 to replicate this behavior and make sure it's correct. |
We added a conversion of failcodes that do not have sufficient information in faac4b2. That means that a failcode that'd require additional information in order to be a correct error to return in an onion is mapped to a generic one since we can't backfill the information. This tests that the mapping is performed correctly and replicates the situation in ElementsProject#4070
Note that you should be doing development with 'enable-deprecated-apis=false' so you'd find such depreciation before it bites you... |
We added a conversion of failcodes that do not have sufficient information in faac4b2. That means that a failcode that'd require additional information in order to be a correct error to return in an onion is mapped to a generic one since we can't backfill the information. This tests that the mapping is performed correctly and replicates the situation in #4070
Thank you very much for clarifying! |
We added a conversion of failcodes that do not have sufficient information in faac4b2. That means that a failcode that'd require additional information in order to be a correct error to return in an onion is mapped to a generic one since we can't backfill the information. This tests that the mapping is performed correctly and replicates the situation in ElementsProject#4070
Issue and Steps to Reproduce
I'm returning failure code
16399
fromhtlc_accepted
(which corresponds toINCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
), but this message is showing up in the logs:I must return that error specifically because it is expected by a bunch of softly-malicious wallets that perform pre-payment probes automatically on every payment using unknown hashes and expect that exact failure code in order to continue with the payment proper.
getinfo
outputThe text was updated successfully, but these errors were encountered: