mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
common/amount: make fmt_amount_sat / fmt_amount_msat etc take copy.
We pass by copy everywhere else, let's do it here too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
23af9d4972
commit
2de467274e
@@ -1767,10 +1767,10 @@ static void add_new_entry(struct json_stream *ret,
|
||||
* failures. */
|
||||
if (pm->amount != NULL && pm->num_nonfailed_parts > 0)
|
||||
json_add_string(ret, "amount_msat",
|
||||
fmt_amount_msat(tmpctx, pm->amount));
|
||||
fmt_amount_msat(tmpctx, *pm->amount));
|
||||
|
||||
json_add_string(ret, "amount_sent_msat",
|
||||
fmt_amount_msat(tmpctx, &pm->amount_sent));
|
||||
fmt_amount_msat(tmpctx, pm->amount_sent));
|
||||
|
||||
if (pm->num_nonfailed_parts > 1)
|
||||
json_add_u64(ret, "number_of_parts",
|
||||
|
||||
Reference in New Issue
Block a user