Skip to content

Commit

Permalink
json-rpc: Do not return a null amount_msat to listpays
Browse files Browse the repository at this point in the history
Suggested-by: Rusty Russell <@rustyrussell>
Changelog-Deprecated: JSON-RPC: `listsendpays` will no longer add `null` if we don't know the `amount_msat` for a payment.
  • Loading branch information
cdecker authored and rustyrussell committed Aug 4, 2020
1 parent 23daf80 commit 98ff0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void json_add_payment_fields(struct json_stream *response,
if (amount_msat_greater(t->msatoshi, AMOUNT_MSAT(0)))
json_add_amount_msat_compat(response, t->msatoshi, "msatoshi",
"amount_msat");
else
else if (deprecated_apis)
json_add_null(response, "amount_msat");


Expand Down

0 comments on commit 98ff0e3

Please sign in to comment.