mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24: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
@@ -295,7 +295,7 @@ static struct command_result *listoffers_done(struct command *cmd,
|
||||
/* We could allow invoices for less, I suppose. */
|
||||
if (!amount_msat_eq(expected, amt))
|
||||
return fail_inv(cmd, inv, "Expected invoice for %s",
|
||||
fmt_amount_msat(tmpctx, &expected));
|
||||
fmt_amount_msat(tmpctx, expected));
|
||||
}
|
||||
|
||||
plugin_log(cmd->plugin, LOG_INFORM,
|
||||
|
||||
Reference in New Issue
Block a user