core-lightning/gossipd
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
..
test routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
broadcast.c broadcast: invert ownership of messages. 2018-05-10 21:35:53 +02:00
broadcast.h broadcast: invert ownership of messages. 2018-05-10 21:35:53 +02:00
gossip_store.c gossipd: Handle failed lseek(...) 2018-05-06 20:45:10 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_wire.csv gossipd: use a real update in local_add_channel. 2018-05-10 21:35:53 +02:00
gossip.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
gossip.h gossip/tor.c: new file for socks proxy code. 2018-05-10 02:28:44 +00:00
handshake.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
handshake.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
Makefile gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
netaddress.c netaddress: fix up IsTor() 2018-05-10 02:28:44 +00:00
netaddress.h gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
routing.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
routing.h routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
tor_autoservice.c gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
tor_autoservice.h gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
tor.c Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00
tor.h Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00