Browse Source

Fix a-vs-an typos

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
4f4756bd20
  1. 2
      bitcoin/script.c
  2. 2
      channeld/channel_wire.csv
  3. 4
      common/htlc_state.h
  4. 2
      doc/lightning-pay.7
  5. 2
      doc/lightning-pay.7.txt
  6. 2
      doc/lightning-sendpay.7
  7. 2
      doc/lightning-sendpay.7.txt
  8. 2
      lightningd/netaddress.c
  9. 2
      lightningd/peer_control.c
  10. 2
      onchaind/onchain.c
  11. 2
      onchaind/onchain_wire.csv
  12. 2
      onchaind/onchain_wire.h
  13. 6
      test/test_protocol.c
  14. 4
      test/test_state_coverage.c
  15. 2
      tests/test_lightningd.py
  16. 2
      wallet/test/run-wallet.c
  17. 2
      wallet/wallet.c
  18. 8
      wallet/wallet.h

2
bitcoin/script.c

@ -512,7 +512,7 @@ u8 **bitcoin_to_local_spend_revocation(const tal_t *ctx,
*
* #### Offered HTLC Outputs
*
* This output sends funds to a HTLC-timeout transaction after the HTLC
* This output sends funds to an HTLC-timeout transaction after the HTLC
* timeout, or to the remote peer using the payment preimage or the revocation
* key. The output is a P2WSH, with a witness script:
*

2
channeld/channel_wire.csv

@ -84,7 +84,7 @@ channel_offer_htlc_reply,,failure_code,u16
channel_offer_htlc_reply,,failurestrlen,u16
channel_offer_htlc_reply,,failurestr,failurestrlen*u8
# Main daemon found out the preimage for an htlc
# Main daemon found out the preimage for an HTLC
#include <bitcoin/preimage.h>
channel_fulfill_htlc,1005
channel_fulfill_htlc,,id,u64

Can't render this file because it has a wrong number of fields in line 2.

4
common/htlc_state.h

@ -14,7 +14,7 @@ enum htlc_state {
RCVD_ADD_ACK_COMMIT,
SENT_ADD_ACK_REVOCATION,
/* When they remove an htlc, it goes from SENT_ADD_ACK_REVOCATION: */
/* When they remove an HTLC, it goes from SENT_ADD_ACK_REVOCATION: */
RCVD_REMOVE_HTLC,
RCVD_REMOVE_COMMIT,
SENT_REMOVE_REVOCATION,
@ -28,7 +28,7 @@ enum htlc_state {
SENT_ADD_ACK_COMMIT,
RCVD_ADD_ACK_REVOCATION,
/* When we remove an htlc, it goes from RCVD_ADD_ACK_REVOCATION: */
/* When we remove an HTLC, it goes from RCVD_ADD_ACK_REVOCATION: */
SENT_REMOVE_HTLC,
SENT_REMOVE_COMMIT,
RCVD_REMOVE_REVOCATION,

2
doc/lightning-pay.7

@ -94,7 +94,7 @@ using different amount or destination\&.
.\}
202\&. Unparseable onion reply\&. The
\fIdata\fR
field of the error will have a
field of the error will have an
\fIonionreply\fR
field, a hex string representation of the raw onion reply\&.
.RE

2
doc/lightning-pay.7.txt

@ -42,7 +42,7 @@ The following error codes may occur:
* 201. Already paid with this 'hash' using different amount or
destination.
* 202. Unparseable onion reply. The 'data' field of the error
will have a 'onionreply' field, a hex string representation
will have an 'onionreply' field, a hex string representation
of the raw onion reply.
* 203. Permanent failure at destination. The 'data' field of
the error will be routing failure object.

2
doc/lightning-sendpay.7

@ -96,7 +96,7 @@ using different amount or destination\&.
.\}
202\&. Unparseable onion reply\&. The
\fIdata\fR
field of the error will have a
field of the error will have an
\fIonionreply\fR
field, a hex string representation of the raw onion reply\&.
.RE

2
doc/lightning-sendpay.7.txt

@ -43,7 +43,7 @@ The following error codes may occur:
* 201. Already paid with this 'hash' using different amount or
destination.
* 202. Unparseable onion reply. The 'data' field of the error
will have a 'onionreply' field, a hex string representation
will have an 'onionreply' field, a hex string representation
of the raw onion reply.
* 203. Permanent failure at destination. The 'data' field of
the error will be routing failure object.

2
lightningd/netaddress.c

@ -228,7 +228,7 @@ static bool get_local_sockname(struct lightningd *ld,
return true;
}
/* Return an wireaddr without port filled in */
/* Return a wireaddr without port filled in */
static bool guess_one_address(struct lightningd *ld,
struct wireaddr *addr, u16 portnum,
enum wire_addr_type type)

2
lightningd/peer_control.c

@ -1275,7 +1275,7 @@ static void handle_irrevocably_resolved(struct peer *peer, const u8 *msg)
}
/**
* onchain_add_utxo -- onchaind is telling us about a UTXO we own
* onchain_add_utxo -- onchaind is telling us about an UTXO we own
*/
static void onchain_add_utxo(struct peer *peer, const u8 *msg)
{

2
onchaind/onchain.c

@ -520,7 +520,7 @@ static void handle_htlc_onchain_fulfill(struct tracked_output *out,
struct sha256 sha;
struct ripemd160 ripemd;
/* Our HTLC, they filled (must be a HTLC-success tx). */
/* Our HTLC, they filled (must be an HTLC-success tx). */
if (out->tx_type == THEIR_UNILATERAL) {
/* BOLT #3:
*

2
onchaind/onchain_wire.csv

@ -82,7 +82,7 @@ onchain_htlc_timeout,,htlc,struct htlc_stub
# onchaind->master: this peer can be forgotten
onchain_all_irrevocably_resolved,5011
# onchaind->master: hey, I identified a UTXO you'll want to track
# onchaind->master: hey, I identified an UTXO you'll want to track
onchain_add_utxo,5012
onchain_add_utxo,,prev_out_tx,struct bitcoin_txid
onchain_add_utxo,,prev_out_index,u32

Can't render this file because it has a wrong number of fields in line 2.

2
onchaind/onchain_wire.h

@ -5,7 +5,7 @@
#include <ccan/tal/tal.h>
#include <common/htlc.h>
/* The minimal info about an htlc. */
/* The minimal info about an HTLC. */
struct htlc_stub {
enum side owner;
u32 cltv_expiry;

6
test/test_protocol.c

@ -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;
};

4
test/test_state_coverage.c

@ -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)

2
tests/test_lightningd.py

@ -2008,7 +2008,7 @@ class LightningDTests(BaseLightningDTests):
assert route[0]['delay'] == 9 + shadow_route
# BOLT #7:
# If A were to send an 4,999,999 millisatoshi to C via B, it needs to
# If A were to send 4,999,999 millisatoshi to C via B, it needs to
# pay B the fee it specified in the B->C `channel_update`, calculated as
# per [HTLC Fees](#htlc_fees):
#

2
wallet/test/run-wallet.c

@ -162,7 +162,7 @@ static bool test_wallet_outputs(void)
CHECK_MSG(!wallet_add_utxo(w, &u, p2sh_wpkh),
"wallet_add_utxo succeeded on second add");
/* Attempt to save a utxo with close_info set */
/* Attempt to save an UTXO with close_info set */
memset(&u.txid, 1, sizeof(u.txid));
u.close_info = tal(w, struct unilateral_close_info);
u.close_info->channel_id = 42;

2
wallet/wallet.c

@ -54,7 +54,7 @@ bool wallet_add_utxo(struct wallet *w, struct utxo *utxo,
}
/**
* wallet_stmt2output - Extract data from stmt and fill a utxo
* wallet_stmt2output - Extract data from stmt and fill an UTXO
*
* Returns true on success.
*/

8
wallet/wallet.h

@ -115,9 +115,9 @@ struct wallet *wallet_new(const tal_t *ctx,
struct log *log, struct timers *timers);
/**
* wallet_add_utxo - Register a UTXO which we (partially) own
* wallet_add_utxo - Register an UTXO which we (partially) own
*
* Add a UTXO to the set of outputs we care about.
* Add an UTXO to the set of outputs we care about.
*/
bool wallet_add_utxo(struct wallet *w, struct utxo *utxo,
enum wallet_output_type type);
@ -280,7 +280,7 @@ int wallet_extract_owned_outputs(struct wallet *w, const struct bitcoin_tx *tx,
u64 *total_satoshi);
/**
* wallet_htlc_save_in - store a htlc_in in the database
* wallet_htlc_save_in - store an htlc_in in the database
*
* @wallet: wallet to store the htlc into
* @chan: the `wallet_channel` this HTLC is associated with
@ -298,7 +298,7 @@ void wallet_htlc_save_in(struct wallet *wallet,
const struct wallet_channel *chan, struct htlc_in *in);
/**
* wallet_htlc_save_out - store a htlc_out in the database
* wallet_htlc_save_out - store an htlc_out in the database
*
* See comment for wallet_htlc_save_in.
*/

Loading…
Cancel
Save