mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
In this test we tell l3 to disconnect on sending WIRE_CHANNEL_ANNOUNCEMENT. This is hit by gossipd (to disconnect from l2) but *also* channeld to disconnect from l4. That's OK, because normally by this point l4 has sent its real channel_update. However, the next patch introduces a delay in sending channel_updates, meaning l4 hasn't sent it yet. If l3 doesn't reconnect to l4, we never get the channel_update and the test which expects l1 to eventually see both sides of the channel fails. So we manually reconnect then. Note that we remove the redundant 'dev-no-reconnect' option from l2: it's added automatically as it doesn't set 'may_reconnect'. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>