rgb-cln/lightningd
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 gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
Makefile gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
bitcoind.c Support debugging with lldb 2018-04-15 17:42:24 +02:00
bitcoind.h Add --bitcoin-rpcport option to pass to bitcoin-rpc 2018-03-25 23:17:36 +02:00
chaintopology.c lightningd: loosen feerate minimum. 2018-05-01 18:45:04 +02:00
chaintopology.h lightningd: loosen feerate minimum. 2018-05-01 18:45:04 +02:00
channel.c lightningd: move "tell gossipd peer is no longer important" to drop_to_chain. 2018-04-26 05:47:57 +00:00
channel.h gossipd: have master explicitly tell us when peer is disconnected. 2018-04-26 05:47:57 +00:00
channel_control.c channeld: get told when announce depth already reached. 2018-04-26 05:47:57 +00:00
channel_control.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
channel_state.h channel_states: fold all the ONCHAIND states into one. 2018-02-23 18:02:00 +01:00
closing_control.c lightningd: move "tell gossipd peer is no longer important" to drop_to_chain. 2018-04-26 05:47:57 +00:00
closing_control.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
connect_control.c Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00
connect_control.h gossipd: keep reaching struct only when we're actively connecting, and don't retry 2018-04-26 05:47:57 +00:00
dev_ping.c lightningd/json: Move json helpers specific for lightningd to new module. 2018-03-19 00:27:55 +00:00
gossip_control.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
gossip_control.h gossipd: separate init and activate. 2018-04-30 12:01:36 +02:00
gossip_msg.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
gossip_msg.h routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
hsm_control.c hsmd: drop newdir logic. 2018-05-05 17:55:10 +02:00
hsm_control.h hsmd: drop newdir logic. 2018-05-05 17:55:10 +02:00
htlc_end.c Remove unused parameter ptr in corrupt(const void *ptr, ...) 2018-02-22 10:46:30 +01:00
htlc_end.h htlc: keep channel pointer, not peer pointer. 2018-02-14 11:31:58 +01:00
invoice.c help - add preimage to param list 2018-05-09 03:47:53 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
json.c tor: add new 'autotor:' address option. 2018-05-10 02:28:44 +00:00
json.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
jsonrpc.c gossipd: handle wildcard addresses correctly. 2018-05-07 22:37:28 +02:00
jsonrpc.h Removed redundancies in withdraw and fundchannel. 2018-05-03 18:20:20 +02:00
jsonrpc_errors.h invoice: Define specific error codes for duplicate label and preimage. 2018-04-26 11:42:17 +00:00
lightningd.c Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00
lightningd.h Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00
log.c common/daemon: common routines for all daemons. 2018-04-03 14:03:28 +02:00
log.h common/daemon: common routines for all daemons. 2018-04-03 14:03:28 +02:00
log_status.c status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
memdump.c memdump: fix overzealous assertions from b857b2e843 2018-03-16 00:16:10 +00:00
onchain_control.c subd: record which ones connect to a peer. 2018-04-26 05:47:57 +00:00
onchain_control.h onchaind: Replay stored channeltxs to restore onchaind state 2018-04-25 14:33:38 +02:00
opening_control.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
opening_control.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
opt_time.c Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
opt_time.h Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
options.c Move always-use-proxy auto-override to master daemon. 2018-05-10 02:28:44 +00:00
options.h hsmd: drop newdir logic. 2018-05-05 17:55:10 +02:00
pay.c wallet, payalgo: Save detail of payment failures for later reporting. (#1345) 2018-04-16 15:29:40 +02:00
pay.h pay: Let `sendpay` modify the recorded `msatoshi` of payments. 2018-03-30 15:40:32 +02:00
payalgo.c payalgo: Report reason to delay before clearing try memory. 2018-05-08 07:08:37 +00:00
payalgo.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
peer_control.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
peer_control.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
peer_htlcs.c wallet: Add msatoshi_to_us_min and msatoshi_to_us_max statistics for channels. 2018-04-05 19:01:53 +02:00
peer_htlcs.h lightningd/peer_control: reorder, move more functions out. 2018-02-20 22:36:21 +01:00
subd.c subd: record which ones connect to a peer. 2018-04-26 05:47:57 +00:00
subd.h subd: record which ones connect to a peer. 2018-04-26 05:47:57 +00:00
watch.c topo: Remove in-memory txs from the block struct 2018-04-13 00:04:37 +02:00
watch.h topo: Remove in-memory txs from the block struct 2018-04-13 00:04:37 +02:00