core-lightning/gossipd
Rusty Russell e450c6bbdb gossipd: remove time-delayed local channel_update, produce DISABLE on-demand.
We have a lot of infrastructure to delay local channel_updates to
avoid spamming on each peer reconnect; we had to keep tracking of
pending ones though, in case we needed the very latest for sending an
error when failing an HTLC.

Instead, it's far simpler to set the local_disabled flag on a channel
when we disconnect, but only send a disabling channel_update if we
actually fail an HTLC.

Note: handle_channel_update() TAKES update (due to tal_arr_dup), but we
didn't use that before.  Now we do, add annotation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-09-26 03:21:35 +00:00
..
test gossipd: Update BOLT-split flags in channel_update 2018-09-21 00:24:12 +00:00
broadcast.c broadcast: don't leak in broadcast_del. 2018-08-24 19:54:32 +02:00
broadcast.h gossip: Have the broadcast_state track its message count 2018-06-09 13:38:46 +02:00
gossip_constants.h gossipd/gossip_constants.h: Single place for BOLT constants. 2018-05-19 15:52:56 -04:00
gossip_store.c Revert "gossipd: handle premature node_announcements in the store." 2018-09-21 17:56:15 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossipd: invalidate old gossip_stores. 2018-09-21 17:56:15 +02:00
gossip_wire.csv ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
gossipd.c gossipd: remove time-delayed local channel_update, produce DISABLE on-demand. 2018-09-26 03:21:35 +00:00
Makefile hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
routing.c gossipd: remove time-delayed local channel_update, produce DISABLE on-demand. 2018-09-26 03:21:35 +00:00
routing.h gossipd: remove time-delayed local channel_update, produce DISABLE on-demand. 2018-09-26 03:21:35 +00:00