core-lightning/gossipd
Rusty Russell 942d04ba87 gossipd: simplify channel_announce handling.
We make new_routing_channel() populate both connections
(active=false), so local_add_channel becomes simpler.  We also
suppress listchannels output of active=false unannounced channels, to
avoid breaking tests (also, these are unusable, so it makes sense to
omit them)

It also seems the logic in add_channel_direction is legacy: a
channel_announce cannot replace the scid (that would be a different
channel), we don't allow duplicate announcements, and the announcement
is never NULL.

And since we disallow repeated channel_announce already, I believe
'forward' is always true, greatly simplifying the logic in
handle_pending_cannouncement.

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: simplify channel_announce handling. 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: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00
routing.h gossipd: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00