-
Notifications
You must be signed in to change notification settings - Fork 113
(draft) feat: add PaymentFailureReason
to PaymentStatus
#566
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
Conversation
👋 Thanks for assigning @tnull as a reviewer! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably some nuance I'm missing in my implementation, and a lot of spots I didn't use reason, but tried to use reason in the location where had the PaymentFailureReason to attach to the payment status.
Hmm, so at least in this PR we won't have a reason to set, as we mark payments as failed. I honestly also like the simplicity of the PaymentStatus
enum previously, but if we'd want to go this way, we should probably introduce our own reason object that is a superset of LDK's PaymentFailureReason
and have it cover all cases to always describe why we failed the payment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to build the swift bindings to test this in Monday app but was getting this error at the moment (aws-lc-sys is building Kyber code for iOS but that code isn’t compatible with iOS due to missing platform symbols? Not totally sure though):
Yes, currently Swift builds are broken on main
due to aws-lc-sys
not building. Post LDK 0.2 we'll be able to use lightningdevkit/rust-lightning#3587 to switch on the ring
feature for electrum-client
for Swift builds, until then we use a patched backport of that PR for the Swift binary builds as a woraround. All other builds work fine with the otherwise-preferable aws-lc-rs
.
Got it, thanks for this info about the patched backport |
Ah yes, I didn't fully flesh it out once I got stuck at the swift bindings part, this makes sense. I like the simplicity of |
Closing the PR part of this (keeping Issue open), thanks for the comments! |
Add reason to
PaymentStatus
failure
#567Probably some nuance I'm missing in my implementation, and a lot of spots I didn't use
reason
, but tried to usereason
in the location where had thePaymentFailureReason
to attach to the payment status.Tried to build the swift bindings to test this in Monday app but was getting this error at the moment (aws-lc-sys is building Kyber code for iOS but that code isn’t compatible with iOS due to missing platform symbols? Not totally sure though):