Repository navigation
Conversation
tankyleo
commented
Nov 11, 2026
Users need BOLT12 invoices to generate payer proofs later and failure reasons to diagnose unsuccessful payments. Neither can currently be recovered from payment history, making the completion event the opportunity to retain this information. Co-Authored-By: Codex
|
👋 Thanks for assigning @benthecarman as a reviewer! |
| &payment, | ||
| ); | ||
| eprintln!("{}", sanitize_for_terminal(format!("Payment {payment_id} failed"))); | ||
| print_response(&payment); |
There was a problem hiding this comment.
Claude is complaining on how this will output:
PaymentFailed.reasonis anOption<i32>and has noserialize_with, so this prints"reason": 1rather than"PAYMENT_FAILURE_REASON_RECIPIENT_REJECTED". Every other enum the CLI prints goes throughstringify_enum_serializer!. Could you add anOptionversion of that macro and a field attribute forevents.PaymentFailed.reasonin ldk-server-grpc/build.rs? A bare integer doesn't help much when diagnosing a failure.
|
Somehow I was able to push a branch on this repository. As expected could not push to it later, so continued here #334 |