mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
paymod: Not having a result doesn't mean we failed at getroute
Specifically if we split, there is no result, but we shouldn't add a failure message.
This commit is contained in:
@@ -1512,7 +1512,9 @@ static void paystatus_add_payment(struct json_stream *s, const struct payment *p
|
||||
/* TODO Add routehint. */
|
||||
/* TODO Add route details */
|
||||
|
||||
if (p->result != NULL) {
|
||||
if (p->step == PAYMENT_STEP_SPLIT) {
|
||||
/* Don't add anything, this is neither a success nor a failure. */
|
||||
} else if (p->result != NULL) {
|
||||
if (p->step == PAYMENT_STEP_SUCCESS)
|
||||
json_object_start(s, "success");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user