mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +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
@@ -1014,7 +1014,7 @@ openchannel_init_dest(struct multifundchannel_destination *dest)
|
||||
json_add_node_id(req->js, "id", &dest->id);
|
||||
assert(!dest->all);
|
||||
json_add_string(req->js, "amount",
|
||||
fmt_amount_sat(tmpctx, &dest->amount));
|
||||
fmt_amount_sat(tmpctx, dest->amount));
|
||||
|
||||
/* Copy the original parent down */
|
||||
tal_wally_start();
|
||||
|
||||
Reference in New Issue
Block a user