mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
Add the missing space between "if" and "("
Changelog-None
This commit is contained in:
committed by
Christian Decker
parent
0ac91b4f99
commit
2ea91f834c
@@ -957,7 +957,7 @@ static bool channelseq(struct channel *c1, struct channel *c2)
|
||||
}
|
||||
|
||||
CHECK((c1->last_tx != NULL) == (c2->last_tx != NULL));
|
||||
if(c1->last_tx) {
|
||||
if (c1->last_tx) {
|
||||
CHECK(bitcoin_tx_eq(c1->last_tx, c2->last_tx));
|
||||
}
|
||||
CHECK(memeq(&c1->last_sig, sizeof(c1->last_sig),
|
||||
|
||||
@@ -3338,7 +3338,7 @@ static bool wallet_forwarded_payment_update(struct wallet *w,
|
||||
db_bind_null(stmt, 3);
|
||||
}
|
||||
|
||||
if(failcode != 0) {
|
||||
if (failcode != 0) {
|
||||
assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED);
|
||||
db_bind_int(stmt, 4, (int)failcode);
|
||||
} else {
|
||||
@@ -3386,7 +3386,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
|
||||
") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"));
|
||||
db_bind_u64(stmt, 0, in->dbid);
|
||||
|
||||
if(out) {
|
||||
if (out) {
|
||||
db_bind_u64(stmt, 1, out->dbid);
|
||||
db_bind_u64(stmt, 3, out->key.channel->scid->u64);
|
||||
db_bind_amount_msat(stmt, 5, &out->msat);
|
||||
@@ -3411,7 +3411,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
|
||||
else
|
||||
db_bind_null(stmt, 8);
|
||||
|
||||
if(failcode != 0) {
|
||||
if (failcode != 0) {
|
||||
assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED);
|
||||
db_bind_int(stmt, 9, (int)failcode);
|
||||
} else {
|
||||
|
||||
@@ -726,7 +726,7 @@ static struct command_result *json_listaddrs(struct command *cmd,
|
||||
|
||||
for (s64 keyidx = 0; keyidx <= *bip32_max_index; keyidx++) {
|
||||
|
||||
if(keyidx == BIP32_INITIAL_HARDENED_CHILD){
|
||||
if (keyidx == BIP32_INITIAL_HARDENED_CHILD){
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user