mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
Add the missing space between "if" and "("
Changelog-None
This commit is contained in:
committed by
Christian Decker
parent
0ac91b4f99
commit
2ea91f834c
@@ -1051,7 +1051,7 @@ static char* check_blockchain_from_bitcoincli(const tal_t *ctx,
|
||||
args_string(tmpctx, cmd),
|
||||
(int)output_bytes, output);
|
||||
|
||||
if(!json_tok_streq(output, valuetok,
|
||||
if (!json_tok_streq(output, valuetok,
|
||||
chainparams->bip70_name))
|
||||
return tal_fmt(ctx, "Error blockchain for bitcoin-cli?"
|
||||
" Should be: %s",
|
||||
|
||||
@@ -414,7 +414,7 @@ void peer_start_channeld(struct channel *channel,
|
||||
if (ld->config.ignore_fee_limits)
|
||||
log_debug(channel->log, "Ignoring fee limits!");
|
||||
|
||||
if(!wallet_remote_ann_sigs_load(tmpctx, channel->peer->ld->wallet, channel->dbid,
|
||||
if (!wallet_remote_ann_sigs_load(tmpctx, channel->peer->ld->wallet, channel->dbid,
|
||||
&remote_ann_node_sig, &remote_ann_bitcoin_sig)) {
|
||||
channel_internal_error(channel,
|
||||
"Could not load remote announcement signatures");
|
||||
@@ -714,7 +714,7 @@ struct command_result *cancel_channel_before_broadcast(struct command *cmd,
|
||||
/* Check if we broadcast the transaction. (We store the transaction type into DB
|
||||
* before broadcast). */
|
||||
enum wallet_tx_type type;
|
||||
if(wallet_transaction_type(cmd->ld->wallet,
|
||||
if (wallet_transaction_type(cmd->ld->wallet,
|
||||
&cancel_channel->funding_txid,
|
||||
&type))
|
||||
return command_fail(cmd, LIGHTNINGD,
|
||||
|
||||
@@ -1075,7 +1075,7 @@ static struct command_result *json_fund_channel_cancel(struct command *cmd,
|
||||
}
|
||||
|
||||
if (peer->uncommitted_channel) {
|
||||
if(!peer->uncommitted_channel->fc || !peer->uncommitted_channel->fc->inflight)
|
||||
if (!peer->uncommitted_channel->fc || !peer->uncommitted_channel->fc->inflight)
|
||||
return command_fail(cmd, LIGHTNINGD, "No channel funding in progress.");
|
||||
|
||||
/* Make sure this gets notified if we succeed or cancel */
|
||||
|
||||
@@ -344,7 +344,7 @@ static char *opt_set_hsm_password(struct lightningd *ld)
|
||||
fflush(stdout);
|
||||
if (getline(&passwd, &passwd_size, stdin) < 0)
|
||||
return "Could not read password from stdin.";
|
||||
if(passwd[strlen(passwd) - 1] == '\n')
|
||||
if (passwd[strlen(passwd) - 1] == '\n')
|
||||
passwd[strlen(passwd) - 1] = '\0';
|
||||
if (tcsetattr(fileno(stdin), TCSAFLUSH, ¤t_term) != 0)
|
||||
return "Could not restore terminal options.";
|
||||
|
||||
@@ -2197,7 +2197,7 @@ void json_format_forwarding_object(struct json_stream *response,
|
||||
}
|
||||
json_add_string(response, "status", forward_status_name(cur->status));
|
||||
|
||||
if(cur->failcode != 0) {
|
||||
if (cur->failcode != 0) {
|
||||
json_add_num(response, "failcode", cur->failcode);
|
||||
json_add_string(response, "failreason",
|
||||
onion_type_name(cur->failcode));
|
||||
|
||||
Reference in New Issue
Block a user