core-lightning/gossipd/test
Rusty Russell cca791d1cb routing: clean up channel public/active states.
1. If we have a channel_announcement, the channel is public, otherwise
   it's not.  Not all channels are public, as they can be local: those
   have a NULL channel_announcement.

2. If we don't have a channel_update, we know nothing about that half
   of the channel, and no other fields are valid.

3. We can tell if a half channel is disabled by the flags field directly.

Note that we never send halfchannels without an update over
gossip_getchannels_reply so that marshalling/unmarshalling can be
vastly simplified.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-05-10 21:35:53 +02: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 routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
run-find_route-specific.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
run-find_route.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
run-initiator-success.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
run-responder-success.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00