rgb-cln/channeld
Dustin Dettmer 2853da1715
connectd+: Flake/race fix for new channels
1) dualopen has fd to connectd
2) channeld needs to take over
3) dualopen passes fd that leads to a connectd over for channeld to use
4) lightningd must receive the fd transfer request and process
5) dualopen shuts down and closes everything it owns

4 & 5 end up in a race. If 5 happens before 4, channeld ends up with an invalid fd for connectd — leaving it in a position to not receive messages.

Lingering for a second makes 4 win the race. Since the daemon is closing anyway, waiting for a second should be alright.

Changelog-Fixed: Fixed a condition for newly created channels that could trigger a need for reconnect.
2022-09-18 10:03:47 -05:00
..
test Makefile: use a library archive for CCAN 2022-07-17 08:51:02 +09:30
Makefile channeld: take over gossip_rcvd_filter.c and is_msg_gossip_broadcast. 2022-06-17 14:14:02 +09:30
channeld.c connectd+: Flake/race fix for new channels 2022-09-18 10:03:47 -05:00
channeld.h channeld: simply exit if hsmd vanishes. 2022-02-08 11:15:52 +10:30
channeld_htlc.h htlcs: add flag to 'fail immediately' 2021-10-23 12:59:13 +02:00
channeld_wire.csv zeroconf: Wire the aliases through `channeld` 2022-07-04 22:14:06 +02:00
commit_tx.c Makefile: update bolts to include remote_pubkey change. 2022-05-19 09:47:32 +09:30
commit_tx.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
full_channel.c doc: update c-lightning to Core Lightning almost everywhere. 2022-04-07 06:53:26 +09:30
full_channel.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
full_channel_error.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
watchtower.c hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
watchtower.h hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30