mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
common: fix up BOLT 2 references.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
8553edb7e2
commit
90c583f464
@ -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)
|
||||
|
@ -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:
|
||||
*...
|
||||
|
Loading…
Reference in New Issue
Block a user