mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
Spelling corrections (#824)
* Small spelling fixes, and clarity for 'iff' [ Squashed commit --RR ]
This commit is contained in:
parent
8f5584d7d6
commit
4c0f7dbd04
@ -105,7 +105,7 @@ enum channel_add_err {
|
||||
* @cltv_expiry: block number when HTLC can no longer be redeemed.
|
||||
* @payment_hash: hash whose preimage can redeem HTLC.
|
||||
* @routing: routing information (copied)
|
||||
* @htlcp: optional pointer for resulting htlc: filled in iff CHANNEL_ERR_NONE.
|
||||
* @htlcp: optional pointer for resulting htlc: filled in if and only if CHANNEL_ERR_NONE.
|
||||
*
|
||||
* If this returns CHANNEL_ERR_NONE, the fee htlc was added and
|
||||
* the output amounts adjusted accordingly. Otherwise nothing
|
||||
@ -148,7 +148,7 @@ enum channel_remove_err {
|
||||
* @channel: The channel state
|
||||
* @owner: the side who offered the HTLC (opposite to that failing it)
|
||||
* @id: unique HTLC id.
|
||||
* @htlcp: optional pointer for failed htlc: filled in iff CHANNEL_ERR_REMOVE_OK.
|
||||
* @htlcp: optional pointer for failed htlc: filled in if and only if CHANNEL_ERR_REMOVE_OK.
|
||||
*
|
||||
* This will remove the htlc and credit the value of the HTLC (back)
|
||||
* to its offerer.
|
||||
|
@ -42,7 +42,7 @@ struct bolt11 {
|
||||
struct sha256 payment_hash;
|
||||
struct pubkey receiver_id;
|
||||
|
||||
/* description_hash valid iff description is NULL. */
|
||||
/* description_hash valid if and only if description is NULL. */
|
||||
const char *description;
|
||||
struct sha256 *description_hash;
|
||||
|
||||
|
@ -57,7 +57,7 @@ bool daemon_conn_sync_flush(struct daemon_conn *dc)
|
||||
}
|
||||
io_fd_block(daemon_fd, false);
|
||||
|
||||
/* Success iff we flushed them all. */
|
||||
/* Success if and only if we flushed them all. */
|
||||
return msg == NULL;
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <wire/gen_peer_wire.h>
|
||||
|
||||
#if DEVELOPER
|
||||
/* We move the fd IFF we do a disconnect. */
|
||||
/* We move the fd if and only if we do a disconnect. */
|
||||
static int dev_disconnect_fd = -1;
|
||||
static char dev_disconnect_line[200];
|
||||
static int dev_disconnect_count, dev_disconnect_len;
|
||||
|
@ -48,7 +48,7 @@ bool channel_id_is_all(const struct channel_id *channel_id);
|
||||
*
|
||||
* @ctx: context to allocate from
|
||||
* @errmsg: the wire_error
|
||||
* @channel: (out) channel it's referrring to, or NULL if don't care.
|
||||
* @channel: (out) channel it's referring to, or NULL if don't care.
|
||||
*/
|
||||
char *sanitize_error(const tal_t *ctx, const u8 *errmsg,
|
||||
struct channel_id *channel_id);
|
||||
|
@ -45,7 +45,7 @@ static void secp256k1_ge_set_xy(secp256k1_ge *r, const secp256k1_fe *x, const se
|
||||
|
||||
/** Set a group element (affine) equal to the point with the given X coordinate
|
||||
* and a Y coordinate that is a quadratic residue modulo p. The return value
|
||||
* is true iff a coordinate with the given X coordinate exists.
|
||||
* is true if and only if a coordinate with the given X coordinate exists.
|
||||
*/
|
||||
static int secp256k1_ge_set_xquad(secp256k1_ge *r, const secp256k1_fe *x);
|
||||
|
||||
|
@ -641,7 +641,7 @@ static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a) {
|
||||
}
|
||||
|
||||
/* We rely on the fact that the Jacobi symbol of 1 / a->z^3 is the same as
|
||||
* that of a->z. Thus a->y / a->z^3 is a quadratic residue iff a->y * a->z
|
||||
* that of a->z. Thus a->y / a->z^3 is a quadratic residue if and only if a->y * a->z
|
||||
is */
|
||||
secp256k1_fe_mul(&yz, &a->y, &a->z);
|
||||
return secp256k1_fe_is_quad_var(&yz);
|
||||
|
@ -140,7 +140,7 @@ struct txs_to_broadcast {
|
||||
/* These are hex encoded already, for bitcoind_sendrawtx */
|
||||
const char **txs;
|
||||
|
||||
/* Command to complete when we're done, iff dev-broadcast triggered */
|
||||
/* Command to complete when we're done, if and only if dev-broadcast triggered */
|
||||
struct command *cmd;
|
||||
};
|
||||
|
||||
|
@ -91,7 +91,7 @@ struct wallet_payment {
|
||||
enum wallet_payment_status status;
|
||||
struct pubkey destination;
|
||||
u64 msatoshi;
|
||||
/* Iff PAYMENT_COMPLETE */
|
||||
/* If and only if PAYMENT_COMPLETE */
|
||||
struct preimage *payment_preimage;
|
||||
struct secret *path_secrets;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user