core-lightning/gossipd
Rusty Russell b7bf414ac4 gossipd: prune announced-but-not-updated channels eventually.
We currently give them a free pass.  The simplest fix is to give them
an old timestamp on initialization.

We still skip unannounced channels, on the assumption that they're
ours.  And we set the last_update_timestamp to -1 when we convert to
gossip_getchannels_entry to indicate no update.

This breaks the DEVELOPER=1 pruning test, since we hardcode the 1
week timeout.  That's fixed in the next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-03-03 19:29:35 +01:00
..
test gossipd: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00
broadcast.c broadcast: Added option to replace a specific index 2018-02-05 18:28:39 +00:00
broadcast.h broadcast: Added option to replace a specific index 2018-02-05 18:28:39 +00:00
gossip_wire.csv gossip_local_add_channel: remove unused flags field. 2018-03-03 19:29:35 +01:00
gossip.c gossipd: prune announced-but-not-updated channels eventually. 2018-03-03 19:29:35 +01:00
handshake.c gossipd: use status levels for unusual reporting. 2018-02-28 12:48:45 +01:00
handshake.h ipaddr: rename to wireaddr. 2017-10-26 21:01:09 +00:00
Makefile status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
routing.c gossipd: prune announced-but-not-updated channels eventually. 2018-03-03 19:29:35 +01:00
routing.h node_connection: move channel_announcement field into struct routing_channel. 2018-03-03 19:29:35 +01:00