mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
lightningd: more updates to match latest BOLT2/3.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user