Browse Source

common: fix up BOLT 2 references.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
90c583f464
  1. 4
      common/initial_channel.h
  2. 7
      common/initial_commit_tx.c

4
common/initial_channel.h

@ -86,7 +86,7 @@ static inline u64 max_htlc_value_in_flight_msat(const struct channel *channel,
} }
/* BOLT #2: /* 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. */ * HTLCs the other node can offer. */
static inline u16 max_accepted_htlcs(const struct channel *channel, static inline u16 max_accepted_htlcs(const struct channel *channel,
enum side recipient) enum side recipient)
@ -113,7 +113,7 @@ static inline u32 htlc_minimum_msat(const struct channel *channel,
} }
/* BOLT #2: /* 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` * to-self outputs must be delayed, using `OP_CHECKSEQUENCEVERIFY`
* delays */ * delays */
static inline u16 to_self_delay(const struct channel *channel, enum side side) static inline u16 to_self_delay(const struct channel *channel, enum side side)

7
common/initial_commit_tx.c

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

Loading…
Cancel
Save