core-lightning/connectd
Rusty Russell 15950bb7d4 connectd: reconnect for non-transient connections.
Rather than have lightningd call us repeatedly to try to connect, have
it tell us what peers are transient and aren't, and connectd will
automatically try to maintain that connection.

There's a new "downgrade_peer" message to tell it a peer is now
transient: to make it non-transient we simply tell connectd to
connect as a non-transient.

The first time, I missed that dual_open_control does its own state
transitions :(

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: `connectd` now handles maintaining/reconnecting to important peers, and we remember the last successful address we connected to.
2024-11-25 15:39:13 +10:30
..
test gossmap: include cltv_expiry_delta in gossmap_chan_get_update_details for completeness. 2024-10-15 09:58:04 +10:30
connectd.c connectd: reconnect for non-transient connections. 2024-11-25 15:39:13 +10:30
connectd.h connectd: reconnect for non-transient connections. 2024-11-25 15:39:13 +10:30
connectd_gossipd_wire.csv gossipd: don't hand out fds. 2022-02-08 11:15:52 +10:30
connectd_wire.csv connectd: reconnect for non-transient connections. 2024-11-25 15:39:13 +10:30
gossip_rcvd_filter.c channeld: Code to implement splicing 2023-07-31 21:00:22 +09:30
gossip_rcvd_filter.h channeld: take over gossip_rcvd_filter.c and is_msg_gossip_broadcast. 2022-06-17 14:14:02 +09:30
gossip_store.c connectd: don't suppress channel_announcement without channel_update yet. 2024-02-12 11:43:33 +01:00
gossip_store.h gossipd: remove spam handling. 2024-02-04 09:24:44 +10:30
handshake.c common/utils: macros to help get copy/compare across different types right. 2024-07-23 09:54:47 +09:30
handshake.h connectd: don't try to set TCP_CORK on websocket pipe. 2023-04-10 09:41:56 +09:30
Makefile connectd: do response to gossip queries, don't hand them to gossipd. 2024-07-10 12:21:19 +09:30
multiplex.c connectd: send self-advertizing gossip rather than having gossipd do it. 2024-11-25 15:39:13 +10:30
multiplex.h connectd: separate routine to inject message without closing connection. 2024-01-31 14:47:33 +10:30
netaddress.c common: remove websocket type from wireaddr. 2023-06-01 09:28:39 +09:30
netaddress.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
onion_message.c global: rename blinding to path_key everywhere. 2024-10-16 07:14:32 +10:30
onion_message.h lightningd: add routine to directly inject an onion message. 2024-07-10 13:34:00 +02:00
peer_exchange_initmsg.c connectd: fix double-free crash on connection timeout. 2024-10-14 16:36:58 +01:00
peer_exchange_initmsg.h connectd: don't try to set TCP_CORK on websocket pipe. 2023-04-10 09:41:56 +09:30
queries.c gossmap: include cltv_expiry_delta in gossmap_chan_get_update_details for completeness. 2024-10-15 09:58:04 +10:30
queries.h connectd: tie gossip query responses into ratelimiting code. 2024-07-10 12:21:19 +09:30
sha1.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
sha1.h lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
tor.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
tor.h connectd: rename 'struct reaching' to 'struct connecting'. 2018-09-28 04:14:28 +00:00
tor_autoservice.c common/wireaddr.h: simplify parse_wireaddr API. 2023-06-01 09:28:39 +09:30
tor_autoservice.h connectd: remove enable-autotor-v2-mode option 2022-05-18 10:15:36 +09:30
websocketd.c connectd: pass correct buflen to memmem 2023-04-27 07:41:06 +09:30