rgb-cln/gossipd
Rusty Russell 0bab2580fc gossipd: clean up local channel updates.
Make update_local_channel use a timer if it's too soon to make another
update.

1. Implement cupdate_different() which compares two updates.
2. make update_local_channel() take a single arg for timer usage.
3. Set timestamp of non-disable update back 5 minutes, so we can
   always generate a disable update if we need to.
4. Make update_local_channel() itself do the "unchanged update" suppression.
   gossipd: clean up local channel updates.
5. Keep pointer to the current timer so we override any old updates with
   a new one, to avoid a race.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-20 06:55:00 +00:00
..
test gossipd: get gossip_min_interval from lightningd. 2019-09-20 06:55:00 +00:00
Makefile per-peer-daemons: tie in gossip filter. 2019-09-06 14:35:01 +02:00
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_constants.h bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
gossip_peerd_wire.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.c gossipd: use gossip_time_now() everywhere. 2019-09-12 05:11:56 +00:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.h gossipd: note if loaded store seems reasonably up-to-date. 2019-06-12 00:37:46 +00:00
gossip_wire.csv gossipd: get gossip_min_interval from lightningd. 2019-09-20 06:55:00 +00:00
gossipd.c gossipd: clean up local channel updates. 2019-09-20 06:55:00 +00:00
routing.c gossipd: clean up local channel updates. 2019-09-20 06:55:00 +00:00
routing.h gossipd: clean up local channel updates. 2019-09-20 06:55:00 +00:00