common: fix up BOLT 2 references.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-06-17 19:43:44 +09:30 committed by Christian Decker
parent 8553edb7e2
commit 90c583f464
2 changed files with 5 additions and 6 deletions

View File

@ -86,7 +86,7 @@ static inline u64 max_htlc_value_in_flight_msat(const struct channel *channel,
}
/* BOLT #2:
*
* similarly `max_accepted_htlcs` limits the number of outstanding
* similarly, `max_accepted_htlcs` limits the number of outstanding
* HTLCs the other node can offer. */
static inline u16 max_accepted_htlcs(const struct channel *channel,
enum side recipient)
@ -113,7 +113,7 @@ static inline u32 htlc_minimum_msat(const struct channel *channel,
}
/* BOLT #2:
*
* `to_self_delay` is the number of blocks that the other nodes
* `to_self_delay` is the number of blocks that the other node's
* to-self outputs must be delayed, using `OP_CHECKSEQUENCEVERIFY`
* delays */
static inline u16 to_self_delay(const struct channel *channel, enum side side)

View File

@ -105,16 +105,15 @@ struct bitcoin_tx *initial_commit_tx(const tal_t *ctx,
*
* The receiving node MUST fail the channel if:
*...
* - the funder's amount for the initial commitment
* transaction is not sufficient for full [fee
* payment](03-transactions.md#fee-payment).
* - it considers `feerate_per_kw` too small for timely
* processing or unreasonably large.
*/
status_unusual("Funder cannot afford fee"
" on initial commitment transaction");
return NULL;
}
/* BOLT #2:
/* FIXME, should be in #2:
*
* The receiving node MUST fail the channel if:
*...