Skip to content

Commit

Permalink
nit: make comments 80 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed Feb 25, 2021
1 parent c6bd87c commit a393ae9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lightningd/dual_open_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,8 +1746,11 @@ static struct command_result *json_openchannel_init(struct command *cmd,
struct amount_sat in_amt = psbt_input_get_amount(psbt, i);
if (!amount_sat_add(&psbt_val, psbt_val, in_amt))
return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
"Overflow in adding PSBT input values. %s",
type_to_string(tmpctx, struct wally_psbt, psbt));
"Overflow in adding PSBT input"
" values. %s",
type_to_string(tmpctx,
struct wally_psbt,
psbt));
}

/* If they don't pass in at least enough in the PSBT to cover
Expand All @@ -1756,8 +1759,12 @@ static struct command_result *json_openchannel_init(struct command *cmd,
return command_fail(cmd, FUND_CANNOT_AFFORD,
"Provided PSBT cannot afford funding of "
"amount %s. %s",
type_to_string(tmpctx, struct amount_sat, amount),
type_to_string(tmpctx, struct wally_psbt, psbt));
type_to_string(tmpctx,
struct amount_sat,
amount),
type_to_string(tmpctx,
struct wally_psbt,
psbt));

fc->funding = *amount;
if (!feerate_per_kw_funding) {
Expand Down

0 comments on commit a393ae9

Please sign in to comment.