mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-16 03:24:23 +01:00
Fix a-vs-an typos
This commit is contained in:
committed by
Christian Decker
parent
5474512c31
commit
4f4756bd20
@@ -88,7 +88,7 @@ enum htlc_state {
|
||||
RECV_ADD_ACK_COMMIT = RECV_ADD_REVOCATION + LOCAL(COMMITTED),
|
||||
SENT_ADD_ACK_REVOCATION = RECV_ADD_ACK_COMMIT + LOCAL(REVOKED) - ADDING,
|
||||
|
||||
/* When they remove an htlc, it goes from SENT_ADD_ACK_REVOCATION: */
|
||||
/* When they remove an HTLC, it goes from SENT_ADD_ACK_REVOCATION: */
|
||||
RECV_REMOVE_HTLC = REMOVING + OURS + LOCAL(PENDING)
|
||||
+ LOCAL(COMMITTED) + REMOTE(COMMITTED),
|
||||
RECV_REMOVE_COMMIT = RECV_REMOVE_HTLC - LOCAL(PENDING) - LOCAL(COMMITTED),
|
||||
@@ -103,7 +103,7 @@ enum htlc_state {
|
||||
SENT_ADD_ACK_COMMIT = SENT_ADD_REVOCATION + REMOTE(COMMITTED),
|
||||
RECV_ADD_ACK_REVOCATION = SENT_ADD_ACK_COMMIT + REMOTE(REVOKED),
|
||||
|
||||
/* When we remove an htlc, it goes from RECV_ADD_ACK_REVOCATION: */
|
||||
/* When we remove an HTLC, it goes from RECV_ADD_ACK_REVOCATION: */
|
||||
SENT_REMOVE_HTLC = REMOVING + THEIRS + REMOTE(PENDING)
|
||||
+ LOCAL(COMMITTED) + REMOTE(COMMITTED),
|
||||
SENT_REMOVE_COMMIT = SENT_REMOVE_HTLC - REMOTE(PENDING) - REMOTE(COMMITTED),
|
||||
@@ -168,7 +168,7 @@ static const char *htlc_stateflags(const tal_t *ctx, enum htlc_state state)
|
||||
|
||||
struct htlc {
|
||||
enum htlc_state state;
|
||||
/* 0 means this is actually a new fee, not a HTLC. */
|
||||
/* 0 means this is actually a new fee, not an HTLC. */
|
||||
unsigned int id;
|
||||
};
|
||||
|
||||
|
||||
@@ -898,7 +898,7 @@ const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, struct peer *peer)
|
||||
return bitcoin_tx("our commit");
|
||||
}
|
||||
|
||||
/* Create a HTLC refund collection */
|
||||
/* Create an HTLC refund collection */
|
||||
const struct bitcoin_tx *bitcoin_htlc_timeout(const tal_t *ctx,
|
||||
const struct peer *peer,
|
||||
const struct htlc *htlc)
|
||||
@@ -906,7 +906,7 @@ const struct bitcoin_tx *bitcoin_htlc_timeout(const tal_t *ctx,
|
||||
return htlc_tx(ctx, "htlc timeout", htlc->id);
|
||||
}
|
||||
|
||||
/* Create a HTLC collection */
|
||||
/* Create an HTLC collection */
|
||||
const struct bitcoin_tx *bitcoin_htlc_spend(const tal_t *ctx,
|
||||
const struct peer *peer,
|
||||
const struct htlc *htlc)
|
||||
|
||||
Reference in New Issue
Block a user