lightningd: more updates to match latest BOLT2/3.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-03-07 16:22:34 +10:30
parent fc198e1bac
commit f0c838d250
3 changed files with 25 additions and 28 deletions

View File

@@ -858,8 +858,12 @@ static void channel_config(struct lightningd *ld,
*/
ours->to_self_delay = ld->dstate.config.locktime_blocks;
/* Don't care. */
ours->max_accepted_htlcs = 511;
/* BOLT #2:
*
* It MUST fail the channel if `max-accepted-htlcs` is greater than
* 483.
*/
ours->max_accepted_htlcs = 483;
/* This is filled in by lightningd_opening, for consistency. */
ours->channel_reserve_satoshis = 0;