core-lightning/gossipd/test
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
..
.gitignore gossipd/test/run-bench-find_route: don't abort if we try to route to ourselves 2017-12-20 13:57:28 +01:00
Makefile gossipd: Check features in node_announcement and channel_announcement. 2018-01-13 11:29:42 +01:00
run-bench-find_route.c gossipd: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00
run-find_route-specific.c gossipd: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00
run-find_route.c gossipd: simplify channel_announce handling. 2018-03-03 19:29:35 +01:00
run-initiator-success.c Mark intentionally unused parameters as such (with "UNUSED") 2018-02-22 01:09:12 +00:00
run-responder-success.c Mark intentionally unused parameters as such (with "UNUSED") 2018-02-22 01:09:12 +00:00